Search Results for

    Show / Hide Table of Contents

    Class BracketPainter

    Text mark painter that draws bracket marks similar to the old TWB window placeable marks.

    Inheritance
    object
    AbstractMarkPainter
    HorizontalLinePainter
    BracketPainter
    TermRecognitionBoldPainter
    Implements
    ITextMarkPainter
    Inherited Members
    HorizontalLinePainter.GetLineRectangle(Rectangle, int)
    HorizontalLinePainter.DrawLine(Graphics, Rectangle)
    AbstractMarkPainter.ConvertToRectangle(RectangleF)
    AbstractMarkPainter.Color
    AbstractMarkPainter.Location
    AbstractMarkPainter.PenWidth
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    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
    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
    HorizontalLinePainter.DrawMarkPart(Graphics, ITextMark, Rectangle, Rectangle, bool, bool)

    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
    Overrides
    HorizontalLinePainter.GetMarkPartBounds(Graphics, ITextMark, Rectangle, bool, bool)

    Implements

    ITextMarkPainter

    Extension Methods

    WindowsControlUtils.ForWindowFromFrameworkElement(object, Action<Window>)
    In this article
    • Constructors
      • BracketPainter()
    • Properties
      • EndHeight
      • LineJoin
    • Methods
      • DrawMarkPart(Graphics, ITextMark, Rectangle, Rectangle, bool, bool)
      • GetMarkPartBounds(Graphics, ITextMark, Rectangle, bool, bool)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX