Class BracketPainter
Text mark painter that draws bracket marks similar to the old TWB window placeable marks.
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Sdl.DesktopEditor.EditorApi.Implementation
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 |
---|---|
System. |
LineJoin
Determines what shape the corners of the brackets will have.
Declaration
public LineJoin LineJoin { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
DrawMarkPart(Graphics, ITextMark, Rectangle, Rectangle, Boolean, Boolean)
Draw the mark
Declaration
public override void DrawMarkPart(Graphics g, ITextMark mark, Rectangle boundingRectangle, Rectangle contentRectangle, bool isFirstLine, bool isLastLine)
Parameters
Type | Name | Description |
---|---|---|
System. |
g | |
IText |
mark | |
System. |
boundingRectangle | |
System. |
contentRectangle | |
System. |
isFirstLine | |
System. |
isLastLine |
Overrides
GetMarkPartBounds(Graphics, ITextMark, Rectangle, Boolean, Boolean)
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 |
---|---|---|
System. |
g | |
IText |
mark | |
System. |
contentRectangle | |
System. |
isFirstLine | |
System. |
isLastLine |
Returns
Type | Description |
---|---|
System. |