SharpLeaf Reference > SharpLeaf Properties > Style Property

SharpLeaf.Style Property

Current working ParagraphStyle. Because it is passed by reference, further modifications to the style will be applied in-flight by the SharpLeaf engine.

Style can be temporarily amended with PushStyle/PopStyle.

public ParagraphStyle Style {get; set;}

Example

style = new ParagraphStyle;
lf.Style = style;
style.Alignment = Alignment.Center; // will change alignment in current flow

See also ...

ParagraphStyle Structure | SharpLeaf Members


Send comments on this topic
© Dyalog Ltd 2016