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
    System.Object
    AbstractMarkPainter
    HorizontalLinePainter
    BracketPainter
    Implements
    ITextMarkPainter
    Inherited Members
    HorizontalLinePainter.GetLineRectangle(Rectangle, Int32)
    HorizontalLinePainter.DrawLine(Graphics, Rectangle)
    AbstractMarkPainter.ConvertToRectangle(RectangleF)
    AbstractMarkPainter.Color
    AbstractMarkPainter.Location
    AbstractMarkPainter.PenWidth
    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
    HorizontalLinePainter.DrawMarkPart(Graphics, ITextMark, Rectangle, Rectangle, Boolean, Boolean)

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

    Implements

    ITextMarkPainter

    Extension Methods

    WindowsControlUtils.ForWindowFromFrameworkElement(Object, Action<Window>)

    On this page

    • Constructors
      • BracketPainter()
    • Properties
      • EndHeight
      • LineJoin
    • Methods
      • DrawMarkPart(Graphics, ITextMark, Rectangle, Rectangle, Boolean, Boolean)
      • GetMarkPartBounds(Graphics, ITextMark, Rectangle, Boolean, Boolean)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX