iText 7 7.1.9 API
|
Represents a border. More...
Public Types |
|
enum | Side { NONE, TOP, RIGHT, BOTTOM, LEFT } |
Enumerates the different sides of the rectangle. More... |
|
Public Member Functions |
|
abstract void | Draw (PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter) |
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction. More... |
|
virtual void | Draw (PdfCanvas canvas, float x1, float y1, float x2, float y2, float borderRadius, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter) |
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction. More... |
|
virtual 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) |
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction. More... |
|
abstract void | DrawCellBorder (PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide) |
Draws the border of a cell. More... |
|
abstract int | GetBorderType () |
Returns the type of the border More... |
|
virtual Color | GetColor () |
Gets the color of the border More... |
|
virtual float | GetOpacity () |
Gets the opacity of the border More... |
|
virtual float | GetWidth () |
Gets the width of the border More... |
|
virtual void | SetColor (Color color) |
Sets the color of the border More... |
|
virtual void | SetWidth (float width) |
Sets the width of the border More... |
|
override bool | Equals (Object anObject) |
Indicates whether the border is equal to the given border. More... |
|
override int | GetHashCode () |
Static Public Attributes |
|
static readonly iText.Layout.Borders.Border | NO_BORDER = null |
The null Border, i.e. the presence of such border is equivalent to the absence of the border More... |
|
const int | SOLID = 0 |
The solid border. More... |
|
const int | DASHED = 1 |
The dashed border. More... |
|
const int | DOTTED = 2 |
The dotted border. More... |
|
const int | DOUBLE = 3 |
The double border. More... |
|
const int | ROUND_DOTS = 4 |
The round-dots border. More... |
|
const int | _3D_GROOVE = 5 |
The 3D groove border. More... |
|
const int | _3D_INSET = 6 |
The 3D inset border. More... |
|
const int | _3D_OUTSET = 7 |
The 3D outset border. More... |
|
const int | _3D_RIDGE = 8 |
The 3D ridge border. More... |
|
Represents a border.
|
strong |
Enumerates the different sides of the rectangle.
Enumerates the different sides of the rectangle. The rectangle sides are expected to be parallel to corresponding page sides Otherwise the result is Side.NONE
|
pure virtual |
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction. Borders are drawn in this order: top, right, bottom, left.
Given points specify the line which lies on the border of the content area, therefore the border itself should be drawn to the left from the drawing direction.
borderWidthBefore
and borderWidthAfter
parameters are used to define the widths of the borders that are before and after the current border, e.g. for the bottom border, borderWidthBefore
specifies width of the right border and borderWidthAfter
- width of the left border. Those width are used to handle areas of border joins.
canvas | PdfCanvas to be written to |
x1 | x coordinate of the beginning point of the element side, that should be bordered |
y1 | y coordinate of the beginning point of the element side, that should be bordered |
x2 | x coordinate of the ending point of the element side, that should be bordered |
y2 | y coordinate of the ending point of the element side, that should be bordered |
defaultSide | the Side , that we will fallback to, if it cannot be determined by border coordinates |
borderWidthBefore | defines width of the border that is before the current one |
borderWidthAfter | defines width of the border that is after the current one |
Implemented in iText.Layout.Borders.Border3D, iText.Layout.Borders.DoubleBorder, iText.Layout.Borders.DottedBorder, iText.Layout.Borders.RoundDotsBorder, iText.Layout.Borders.DashedBorder, and iText.Layout.Borders.SolidBorder.
|
inlinevirtual |
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction. Borders are drawn in this order: top, right, bottom, left.
Given points specify the line which lies on the border of the content area, therefore the border itself should be drawn to the left from the drawing direction.
borderWidthBefore
and borderWidthAfter
parameters are used to define the widths of the borders that are before and after the current border, e.g. for the bottom border, borderWidthBefore
specifies width of the right border and borderWidthAfter
- width of the left border. Those width are used to handle areas of border joins.
borderRadius
is used to draw rounded borders.
canvas | PdfCanvas to be written to |
x1 | x coordinate of the beginning point of the element side, that should be bordered |
y1 | y coordinate of the beginning point of the element side, that should be bordered |
x2 | x coordinate of the ending point of the element side, that should be bordered |
y2 | y coordinate of the ending point of the element side, that should be bordered |
borderRadius | defines the radius of the element's corners |
defaultSide | the Side , that we will fallback to, if it cannot be determined by border coordinates |
borderWidthBefore | defines width of the border that is before the current one |
borderWidthAfter | defines width of the border that is after the current one |
|
inlinevirtual |
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction. Borders are drawn in this order: top, right, bottom, left.
Given points specify the line which lies on the border of the content area, therefore the border itself should be drawn to the left from the drawing direction.
borderWidthBefore
and borderWidthAfter
parameters are used to define the widths of the borders that are before and after the current border, e.g. for the bottom border, borderWidthBefore
specifies width of the right border and borderWidthAfter
- width of the left border. Those width are used to handle areas of border joins.
horizontalRadius1
, verticalRadius1
, horizontalRadius2
and verticalRadius2
are used to draw rounded borders.
canvas | PdfCanvas to be written to |
x1 | x coordinate of the beginning point of the element side, that should be bordered |
y1 | y coordinate of the beginning point of the element side, that should be bordered |
x2 | x coordinate of the ending point of the element side, that should be bordered |
y2 | y coordinate of the ending point of the element side, that should be bordered |
horizontalRadius1 | defines the horizontal radius of the border's first corner |
verticalRadius1 | defines the vertical radius of the border's first corner |
horizontalRadius2 | defines the horizontal radius of the border's second corner |
verticalRadius2 | defines the vertical radius of the border's second corner |
defaultSide | the Side , that we will fallback to, if it cannot be determined by border coordinates |
borderWidthBefore | defines width of the border that is before the current one |
borderWidthAfter | defines width of the border that is after the current one |
Reimplemented in iText.Layout.Borders.RoundDotsBorder, iText.Layout.Borders.DashedBorder, iText.Layout.Borders.SolidBorder, and iText.Layout.Borders.DottedBorder.
|
pure virtual |
Draws the border of a cell.
canvas | PdfCanvas to be written to |
x1 | x coordinate of the beginning point of the element side, that should be bordered |
y1 | y coordinate of the beginning point of the element side, that should be bordered |
x2 | x coordinate of the ending point of the element side, that should be bordered |
y2 | y coordinate of the ending point of the element side, that should be bordered |
defaultSide | the Side , that we will fallback to, if it cannot be determined by border coordinates |
Implemented in iText.Layout.Borders.SolidBorder, iText.Layout.Borders.DoubleBorder, iText.Layout.Borders.Border3D, iText.Layout.Borders.DottedBorder, iText.Layout.Borders.DashedBorder, and iText.Layout.Borders.RoundDotsBorder.
|
inline |
Indicates whether the border is equal to the given border.
Indicates whether the border is equal to the given border. The border type, width and color are considered during the comparison.
|
pure virtual |
Returns the type of the border
Implemented in iText.Layout.Borders.GrooveBorder, iText.Layout.Borders.InsetBorder, iText.Layout.Borders.OutsetBorder, iText.Layout.Borders.RidgeBorder, iText.Layout.Borders.DoubleBorder, iText.Layout.Borders.DottedBorder, iText.Layout.Borders.RoundDotsBorder, iText.Layout.Borders.DashedBorder, and iText.Layout.Borders.SolidBorder.
|
inlinevirtual |
|
inline |
|
inlinevirtual |
Gets the opacity of the border
|
inlinevirtual |
Gets the width of the border
|
inlinevirtual |
|
inlinevirtual |
Sets the width of the border
width | The width |
|
static |
The 3D groove border.
|
static |
The 3D inset border.
|
static |
The 3D outset border.
|
static |
The 3D ridge border.
|
static |
The dashed border.
|
static |
The dotted border.
|
static |
The double border.
|
static |
The null Border, i.e. the presence of such border is equivalent to the absence of the border
|
static |
The round-dots border.
|
static |
The solid border.