Class DottedLine
Implementation of ILineDrawer which draws a dotted horizontal line along the bottom edge of the specified rectangle.
public class DottedLine : ILineDrawer
- Inheritance
-
DottedLine
- Implements
- Inherited Members
Constructors
DottedLine()
Constructs a dotted horizontal line which will be drawn along the bottom edge of the specified rectangle.
public DottedLine()
DottedLine(float)
Constructs a dotted horizontal line which will be drawn along the bottom edge of the specified rectangle.
public DottedLine(float lineWidth)
Parameters
lineWidth
floatthe width of the line
DottedLine(float, float)
Constructs a dotted horizontal line which will be drawn along the bottom edge of the specified rectangle.
public DottedLine(float lineWidth, float gap)
Parameters
lineWidth
floatthe width of the line
gap
floatthe gap between the center of the dots of the dotted line.
Fields
gap
the gap between the dots.
protected float gap
Field Value
Methods
Draw(PdfCanvas, Rectangle)
public virtual void Draw(PdfCanvas canvas, Rectangle drawArea)
Parameters
GetColor()
public virtual Color GetColor()
Returns
GetGap()
Getter for the gap between the center of the dots of the dotted line.
public virtual float GetGap()
Returns
- float
the gap between the center of the dots
GetLineWidth()
Gets line width in points
public virtual float GetLineWidth()
Returns
- float
line thickness
SetColor(Color)
public virtual void SetColor(Color color)
Parameters
color
Color
SetGap(float)
Setter for the gap between the center of the dots of the dotted line.
public virtual void SetGap(float gap)
Parameters
gap
floatthe gap between the center of the dots
SetLineWidth(float)
Sets line width in points
public virtual void SetLineWidth(float lineWidth)
Parameters
lineWidth
floatnew line width