Class BracketPainter
Text mark painter that draws bracket marks similar to the old TWB window placeable marks.
Inheritance
BracketPainter
Implements
Inherited Members
Namespace: SdlSdl.DesktopEditorEditorApiImplementation
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public class BracketPainter : HorizontalLinePainter, ITextMarkPainter
Constructors
BracketPainter()
Declaration
public BracketPainter()
Properties
EndHeight
Height of the bracket ends that indicate the start and end of the spanned content.
Declaration
public int EndHeight { get; set; }
Property Value
Type | Description |
---|---|
int |
LineJoin
Determines what shape the corners of the brackets will have.
Declaration
public LineJoin LineJoin { get; set; }
Property Value
Type | Description |
---|---|
LineJoin |
Methods
DrawMarkPart(Graphics, ITextMark, Rectangle, Rectangle, bool, bool)
Draw the mark
Declaration
public override void DrawMarkPart(Graphics g, ITextMark mark, Rectangle boundingRectangle, Rectangle contentRectangle, bool isFirstLine, bool isLastLine)
Parameters
Type | Name | Description |
---|---|---|
Graphics | g | |
ITextMark | mark | |
Rectangle | boundingRectangle | |
Rectangle | contentRectangle | |
bool | isFirstLine | |
bool | isLastLine |
Overrides
GetMarkPartBounds(Graphics, ITextMark, Rectangle, bool, bool)
Calculate the bounding rectangle for the mark.
Declaration
public override Rectangle GetMarkPartBounds(Graphics g, ITextMark mark, Rectangle contentRectangle, bool isFirstLine, bool isLastLine)
Parameters
Type | Name | Description |
---|---|---|
Graphics | g | |
ITextMark | mark | |
Rectangle | contentRectangle | |
bool | isFirstLine | |
bool | isLastLine |
Returns
Type | Description |
---|---|
Rectangle |