Class DoubleBorder
Creates a double border around the element it's set to.
public class DoubleBorder : Border
- Inheritance
-
DoubleBorder
- Inherited Members
Remarks
Creates a double border around the element it's set to. The space between the two border lines has the same width as the two borders. If a background has been set on the element the color will show in between the two borders.
Constructors
DoubleBorder(float)
Creates a DoubleBorder with the specified width for both the two borders as the space in between them.
public DoubleBorder(float width)
Parameters
width
floatwidth of the borders and the space between them
Remarks
Creates a DoubleBorder with the specified width for both the two borders as the space in between them. The color is set to the default: black.
DoubleBorder(Color, float)
Creates a DoubleBorder with the specified width for both the two borders as the space in between them and the specified color for the two borders.
public DoubleBorder(Color color, float width)
Parameters
color
ColorThe color of the borders
width
floatThe width of the borders and the space between them
Remarks
Creates a DoubleBorder with the specified width for both the two borders as the space in between them and the specified color for the two borders. The space in between the two borders is either colorless or will be filled with the background color of the element, if a color has been set.
DoubleBorder(Color, float, float)
Creates a DoubleBorder with the specified width for both the two borders as the space in between them and the specified color for the two borders.
public DoubleBorder(Color color, float width, float opacity)
Parameters
color
ColorThe color of the borders
width
floatThe width of the borders and the space between them
opacity
floatThe opacity
Remarks
Creates a DoubleBorder with the specified width for both the two borders as the space in between them and the specified color for the two borders. The space in between the two borders is either colorless or will be filled with the background color of the element, if a color has been set.
Methods
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()