Class HorizontalLinePainter
Mark painter implementation that draws a horizontal line.
Implements
Inherited Members
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 Draw
Declaration
protected Rectangle DrawLine(Graphics g, Rectangle contentRectangle)
Parameters
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 | |
IText |
mark | |
Rectangle | boundingRectangle | |
Rectangle | contentRectangle | |
bool | isFirstLine | |
bool | isLastLine |
Overrides
GetLineRectangle(Rectangle, int)
Implementation used by Get
Declaration
protected Rectangle GetLineRectangle(Rectangle contentRectangle, int penWidth)
Parameters
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 | |
IText |
mark | |
Rectangle | contentRectangle | |
bool | isFirstLine | |
bool | isLastLine |
Returns
Type | Description |
---|---|
Rectangle |