Class AbstractMarkPainter
Abstract base class that mark painters can derive from if they want.
Holds some common mark properties and helpers.
Inheritance
AbstractMarkPainter
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public abstract class AbstractMarkPainter : ITextMarkPainter
Constructors
AbstractMarkPainter()
Declaration
protected AbstractMarkPainter()
Properties
Color
Declaration
public Color Color { get; set; }
Property Value
Location
Location of the marker in relation to the content it marks.
Declaration
public AbstractMarkPainter.MarkLocation Location { get; set; }
Property Value
PenWidth
Width (in pixels) of the pen used to draw the marks.
Declaration
public int PenWidth { get; set; }
Property Value
Methods
ConvertToRectangle(RectangleF)
Declaration
public static Rectangle ConvertToRectangle(RectangleF rectangleF)
Parameters
Returns
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
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
Returns
Implements
Extension Methods