Class HorizontalLinePainter
Mark painter implementation that draws a horizontal line.
Inheritance
HorizontalLinePainter
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public class HorizontalLinePainter : AbstractMarkPainter, ITextMarkPainter
Constructors
HorizontalLinePainter()
Declaration
public HorizontalLinePainter()
Methods
DrawLine(Graphics, Rectangle)
Declaration
protected Rectangle DrawLine(Graphics g, Rectangle contentRectangle)
Parameters
Returns
DrawMarkPart(Graphics, ITextMark, Rectangle, Rectangle, bool, bool)
Declaration
public override void DrawMarkPart(Graphics g, ITextMark mark, Rectangle boundingRectangle, Rectangle contentRectangle, bool isFirstLine, bool isLastLine)
Parameters
Overrides
GetLineRectangle(Rectangle, int)
Declaration
protected Rectangle GetLineRectangle(Rectangle contentRectangle, int penWidth)
Parameters
Type |
Name |
Description |
Rectangle |
contentRectangle |
|
int |
penWidth |
|
Returns
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
Returns
Overrides
Implements
Extension Methods