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
    System.Object
    AbstractMarkPainter
    HorizontalLinePainter
    Implements
    ITextMarkPainter
    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 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
    System.Drawing.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
    System.Int32

    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, Boolean, Boolean).

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

    DrawMarkPart(Graphics, ITextMark, Rectangle, Rectangle, Boolean, Boolean)

    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
    System.Drawing.Graphics g
    ITextMark mark
    System.Drawing.Rectangle boundingRectangle
    System.Drawing.Rectangle contentRectangle
    System.Boolean isFirstLine
    System.Boolean isLastLine

    GetMarkPartBounds(Graphics, ITextMark, Rectangle, Boolean, Boolean)

    abstract method for interface implementation

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

    Implements

    ITextMarkPainter

    Extension Methods

    WindowsControlUtils.ForWindowFromFrameworkElement(Object, Action<Window>)

    On this page

    • Constructors
      • AbstractMarkPainter()
    • Properties
      • Color
      • Location
      • PenWidth
    • Methods
      • ConvertToRectangle(RectangleF)
      • DrawMarkPart(Graphics, ITextMark, Rectangle, Rectangle, Boolean, Boolean)
      • GetMarkPartBounds(Graphics, ITextMark, Rectangle, Boolean, Boolean)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX