Class FixedDashedBorder
Draws a border with a specific dashes around the element it's been set to.
public class FixedDashedBorder : Border
- Inheritance
-
FixedDashedBorder
- Inherited Members
Constructors
FixedDashedBorder(float)
Creates a FixedDashedBorder with the specified width.
public FixedDashedBorder(float width)
Parameters
width
floatwidth of the border
FixedDashedBorder(Color, float)
Creates a FixedDashedBorder with the specified width and the specified color.
public FixedDashedBorder(Color color, float width)
Parameters
FixedDashedBorder(Color, float, float)
Creates a FixedDashedBorder with the specified width, color and opacity.
public FixedDashedBorder(Color color, float width, float opacity)
Parameters
color
Colorcolor of the border
width
floatwidth of the border
opacity
floatthe opacity which border should have
FixedDashedBorder(Color, float, float, float, float)
Creates a FixedDashedBorder with the specified width, color, unitsOn, unitsOff and phase.
public FixedDashedBorder(Color color, float width, float unitsOn, float unitsOff, float phase)
Parameters
color
Colorcolor of the border
width
floatwidth of the border
unitsOn
floatthe number of units that must be 'on'
unitsOff
floatthe number of units that must be 'off'
phase
floatthe value of the phase
FixedDashedBorder(Color, float, float, float, float, float)
Creates a FixedDashedBorder with the specified width, color, opacity, unitsOn, unitsOff and phase.
public FixedDashedBorder(Color color, float width, float opacity, float unitsOn, float unitsOff, float phase)
Parameters
color
Colorcolor of the border
width
floatwidth of the border
opacity
floatthe opacity which border should have
unitsOn
floatthe number of units that must be 'on'
unitsOff
floatthe number of units that must be 'off'
phase
floatthe value of the phase
Fields
DEFAULT_UNITS_VALUE
Default dash unitsOn and unitsOff value.
public const float DEFAULT_UNITS_VALUE = 3
Field Value
Methods
Draw(PdfCanvas, float, float, float, float, float, float, float, float, Side, float, float)
public override void Draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, float horizontalRadius1, float verticalRadius1, float horizontalRadius2, float verticalRadius2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
Parameters
canvas
PdfCanvasx1
floaty1
floatx2
floaty2
floathorizontalRadius1
floatverticalRadius1
floathorizontalRadius2
floatverticalRadius2
floatdefaultSide
Border.SideborderWidthBefore
floatborderWidthAfter
float
Draw(PdfCanvas, float, float, float, float, Side, float, float)
public override void Draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
Parameters
canvas
PdfCanvasx1
floaty1
floatx2
floaty2
floatdefaultSide
Border.SideborderWidthBefore
floatborderWidthAfter
float
DrawCellBorder(PdfCanvas, float, float, float, float, Side)
public override void DrawCellBorder(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide)
Parameters
GetBorderType()
public override int GetBorderType()