Class BracketPainter
Text mark painter that draws bracket marks similar to the old TWB window placeable marks.
Inheritance
System.Object
BracketPainter
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.Int32 |
LineJoin
Determines what shape the corners of the brackets will have.
Declaration
public LineJoin LineJoin { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Drawing2D.LineJoin |
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.Drawing.Graphics | g | |
ITextMark | mark | |
System.Drawing.Rectangle | boundingRectangle | |
System.Drawing.Rectangle | contentRectangle | |
System.Boolean | isFirstLine | |
System.Boolean | 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.Drawing.Graphics | g | |
ITextMark | mark | |
System.Drawing.Rectangle | contentRectangle | |
System.Boolean | isFirstLine | |
System.Boolean | isLastLine |
Returns
Type | Description |
---|---|
System.Drawing.Rectangle |