SharpLeaf Reference > SharpLeaf Methods > PushStyle Method SharpLeaf.PushStyle Method
Temporarily change the current ParagraphStyle, while pushing previous on to the style stack – undone by PopStyle().
The pushed ParagraphStyle is still a reference, so modifications to it will be applied after the matching PopStyle().
Overloads
Example
lf.PushStyle("Alignment=Center");
lf.AddParagraphs("Centered text");
lf.PopStyle();
See also ...SharpLeaf Members | SharpLeaf.Style Property | SharpLeaf.PopStyle Method
Send comments on this topic © Dyalog Ltd 2021
|