Search Results for

    Show / Hide Table of Contents

    Class HorizontalLinePainter

    Mark painter implementation that draws a horizontal line.

    Inheritance
    object
    AbstractMarkPainter
    HorizontalLinePainter
    BracketPainter
    SquigglyLinePainter
    Implements
    ITextMarkPainter
    Inherited Members
    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 HorizontalLinePainter : AbstractMarkPainter, ITextMarkPainter

    Constructors

    HorizontalLinePainter()

    Declaration
    public HorizontalLinePainter()

    Methods

    DrawLine(Graphics, Rectangle)

    Implementation used by DrawMarkPart(Graphics, ITextMark, Rectangle, Rectangle, bool, bool) to draw the line.

    Declaration
    protected Rectangle DrawLine(Graphics g, Rectangle contentRectangle)
    Parameters
    Type Name Description
    Graphics g
    Rectangle contentRectangle
    Returns
    Type Description
    Rectangle

    DrawMarkPart(Graphics, ITextMark, Rectangle, Rectangle, bool, bool)

    Draw the line.

    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
    AbstractMarkPainter.DrawMarkPart(Graphics, ITextMark, Rectangle, Rectangle, bool, bool)

    GetLineRectangle(Rectangle, int)

    Implementation used by GetMarkPartBounds(Graphics, ITextMark, Rectangle, bool, bool) to calculate the line rectangle.

    Declaration
    protected Rectangle GetLineRectangle(Rectangle contentRectangle, int penWidth)
    Parameters
    Type Name Description
    Rectangle contentRectangle
    int penWidth
    Returns
    Type Description
    Rectangle

    GetMarkPartBounds(Graphics, ITextMark, Rectangle, bool, bool)

    Returns a rectangle that represents the line that will be drawn.

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

    Implements

    ITextMarkPainter

    Extension Methods

    WindowsControlUtils.ForWindowFromFrameworkElement(object, Action<Window>)
    In this article
    • Constructors
      • HorizontalLinePainter()
    • Methods
      • DrawLine(Graphics, Rectangle)
      • DrawMarkPart(Graphics, ITextMark, Rectangle, Rectangle, bool, bool)
      • GetLineRectangle(Rectangle, int)
      • GetMarkPartBounds(Graphics, ITextMark, Rectangle, bool, bool)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX