SharpLeaf Reference > SharpLeaf Methods > SetBox Method SharpLeaf.SetBox Method
Start and stop boxing decorations around text.
The horizontal spacing between the text and the box is controlled by ParagraphStyle.HorizontalGap.
Overloads
Example
lf.SetBox(new BoxStyle(new int[]{2,0,0,0},Color.Firebrick)); // Left edge only, 2-point thick
lf.AddParagraphs("This paragraph has a change bar on the left");
Remarks
You will need to set and unset the box at paragraph boundaries (that is, right after NextParagraph or AddParagraphs) if you want the paragraph’s SpaceBefore and SpaceAfter to be included in the box.
See also ...Advanced Text Control | SharpLeaf Members
Send comments on this topic © Dyalog Ltd 2021
|