Class Border3D
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
floatwith 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
DeviceCmykcolor of the border
width
floatwidth 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
DeviceCmykcolor of the border
width
floatwidth of the border
opacity
floatopacity of the border
Border3D(DeviceGray, float)
Creates a Border3D instance with the specified width and color.
protected Border3D(DeviceGray color, float width)
Parameters
color
DeviceGraycolor of the border
width
floatwidth 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
DeviceGraycolor of the border
width
floatwidth of the border
opacity
floatopacity of the border
Border3D(DeviceRgb, float)
Creates a Border3D instance with the specified width and color.
protected Border3D(DeviceRgb color, float width)
Parameters
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
DeviceRgbcolor of the border
width
floatwidth of the border
opacity
floatopacity 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
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
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
PdfCanvasPdfCanvas the color will be applied on
side
Border.Sidethe
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)