Table of Contents

Class DoubleBorder

Namespace
iText.Layout.Borders
Assembly
itext.layout.dll

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 float

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. 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 Color

The color of the borders

width float

The 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 Color

The color of the borders

width float

The width of the borders and the space between them

opacity float

The 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 PdfCanvas
x1 float
y1 float
x2 float
y2 float
defaultSide Border.Side
borderWidthBefore float
borderWidthAfter 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

canvas PdfCanvas
x1 float
y1 float
x2 float
y2 float
defaultSide Border.Side

GetBorderType()

public override int GetBorderType()

Returns

int