Table of Contents

Class Border3D

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

Represents a border that is displayed using a 3D effect.

public abstract class Border3D : Border
Inheritance
Border3D
Derived
Inherited Members

Constructors

Border3D(float)

Creates a Border3D instance with the specified width.

protected Border3D(float width)

Parameters

width float

with of the border

Remarks

Creates a Border3D instance with the specified width. Also sets the color to gray.

Border3D(DeviceCmyk, float)

Creates a Border3D instance with the specified width and color.

protected Border3D(DeviceCmyk color, float width)

Parameters

color DeviceCmyk

color of the border

width float

width of the border

Border3D(DeviceCmyk, float, float)

Creates a Border3D instance with the specified width, color and opacity.

protected Border3D(DeviceCmyk color, float width, float opacity)

Parameters

color DeviceCmyk

color of the border

width float

width of the border

opacity float

opacity of the border

Border3D(DeviceGray, float)

Creates a Border3D instance with the specified width and color.

protected Border3D(DeviceGray color, float width)

Parameters

color DeviceGray

color of the border

width float

width of the border

Border3D(DeviceGray, float, float)

Creates a Border3D instance with the specified width, color and opacity.

protected Border3D(DeviceGray color, float width, float opacity)

Parameters

color DeviceGray

color of the border

width float

width of the border

opacity float

opacity of the border

Border3D(DeviceRgb, float)

Creates a Border3D instance with the specified width and color.

protected Border3D(DeviceRgb color, float width)

Parameters

color DeviceRgb

color of the border

width float

width of the border

Border3D(DeviceRgb, float, float)

Creates a Border3D instance with the specified width, color and opacity.

protected Border3D(DeviceRgb color, float width, float opacity)

Parameters

color DeviceRgb

color of the border

width float

width of the border

opacity float

opacity of the border

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

GetDarkerColor()

Makes the transparentColor color of the border darker and returns the result

protected virtual Color GetDarkerColor()

Returns

Color

The darker color

SetInnerHalfColor(PdfCanvas, Side)

Sets the fill color for the inner half of 3D Border

protected abstract void SetInnerHalfColor(PdfCanvas canvas, Border.Side side)

Parameters

canvas PdfCanvas

PdfCanvas the color will be applied on

side Border.Side

the side the color will be applied on

SetOuterHalfColor(PdfCanvas, Side)

Sets the fill color for the outer half of 3D Border

protected abstract void SetOuterHalfColor(PdfCanvas canvas, Border.Side side)

Parameters

canvas PdfCanvas

PdfCanvas the color will be applied on

side Border.Side

the side the color will be applied on