Search Results for

    Show / Hide Table of Contents

    Class AbstractMarkPainter

    Abstract base class that mark painters can derive from if they want. Holds some common mark properties and helpers.

    Inheritance
    object
    AbstractMarkPainter
    FindResultPainter
    HorizontalLinePainter
    Implements
    ITextMarkPainter
    Inherited Members
    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 abstract class AbstractMarkPainter : ITextMarkPainter

    Constructors

    AbstractMarkPainter()

    Declaration
    protected AbstractMarkPainter()

    Properties

    Color

    Color of the marker.

    Declaration
    public Color Color { get; set; }
    Property Value
    Type Description
    Color

    Location

    Location of the marker in relation to the content it marks.

    Declaration
    public AbstractMarkPainter.MarkLocation Location { get; set; }
    Property Value
    Type Description
    AbstractMarkPainter.MarkLocation

    PenWidth

    Width (in pixels) of the pen used to draw the marks.

    Declaration
    public int PenWidth { get; set; }
    Property Value
    Type Description
    int

    Methods

    ConvertToRectangle(RectangleF)

    Convert a RectangleF to a rectangle. Useful when converting the bounds of a GraphicsPath to something that can be returned from GetMarkPartBounds(Graphics, ITextMark, Rectangle, bool, bool).

    Declaration
    public static Rectangle ConvertToRectangle(RectangleF rectangleF)
    Parameters
    Type Name Description
    RectangleF rectangleF
    Returns
    Type Description
    Rectangle

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

    abstract method for interface implementation

    Declaration
    public abstract 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

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

    abstract method for interface implementation

    Declaration
    public abstract 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

    Implements

    ITextMarkPainter

    Extension Methods

    WindowsControlUtils.ForWindowFromFrameworkElement(object, Action<Window>)
    In this article
    • Constructors
      • AbstractMarkPainter()
    • Properties
      • Color
      • Location
      • PenWidth
    • Methods
      • ConvertToRectangle(RectangleF)
      • DrawMarkPart(Graphics, ITextMark, Rectangle, Rectangle, bool, bool)
      • GetMarkPartBounds(Graphics, ITextMark, Rectangle, bool, bool)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX