C# Класс iTextSharp.text.Rectangle

A Rectangle is the representation of a geometric figure.
Наследование: Element, IElement
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
backgroundColor BaseColor
border int
borderColor BaseColor
borderColorBottom BaseColor
borderColorLeft BaseColor
borderColorRight BaseColor
borderColorTop BaseColor
borderWidth float
borderWidthBottom float
borderWidthLeft float
borderWidthRight float
borderWidthTop float
llx float
lly float
rotation int
urx float
ury float
useVariableBorders bool

Открытые методы

Метод Описание
CloneNonPositionParameters ( Rectangle rect ) : void
DisableBorderSide ( int side ) : void
EnableBorderSide ( int side ) : void
GetBottom ( float margin ) : float

Returns the lower left y-coordinate, considering a given margin.

GetLeft ( float margin ) : float

Returns the lower left x-coordinate, considering a given margin.

GetRectangle ( float top, float bottom ) : Rectangle

Gets a Rectangle that is altered to fit on the page.

GetRight ( float margin ) : float

Returns the upper right x-coordinate, considering a given margin.

GetTop ( float margin ) : float

Returns the upper right y-coordinate, considering a given margin.

HasBorder ( int type ) : bool

Indicates if the table has a some type of border.

HasBorders ( ) : bool

Indicates if the table has borders.

IsContent ( ) : bool
IsNestable ( ) : bool
Normalize ( ) : void
Process ( IElementListener listener ) : bool

Processes the element by adding it (or the different parts) to an IElementListener.

Rectangle ( Rectangle rect ) : System

Constructs a Rectangle-object.

Rectangle ( float urx, float ury ) : System

Constructs a Rectangle-object starting from the origin (0, 0).

Rectangle ( float llx, float lly, float urx, float ury ) : System

Constructs a Rectangle-object.

Rectangle ( float llx, float lly, float urx, float ury, int rotation ) : System
Rectangle ( float urx, float ury, int rotation ) : System
Rotate ( ) : Rectangle

Swaps the values of urx and ury and of lly and llx in order to rotate the rectangle.

SoftCloneNonPositionParameters ( Rectangle rect ) : void
ToString ( ) : String

Приватные методы

Метод Описание
GetVariableBorderWidth ( float variableWidthValue, int side ) : float
UpdateBorderBasedOnWidth ( float width, int side ) : void

Описание методов

CloneNonPositionParameters() публичный метод

public CloneNonPositionParameters ( Rectangle rect ) : void
rect Rectangle
Результат void

DisableBorderSide() публичный метод

public DisableBorderSide ( int side ) : void
side int
Результат void

EnableBorderSide() публичный метод

public EnableBorderSide ( int side ) : void
side int
Результат void

GetBottom() публичный метод

Returns the lower left y-coordinate, considering a given margin.
public GetBottom ( float margin ) : float
margin float a margin
Результат float

GetLeft() публичный метод

Returns the lower left x-coordinate, considering a given margin.
public GetLeft ( float margin ) : float
margin float a margin
Результат float

GetRectangle() публичный метод

Gets a Rectangle that is altered to fit on the page.
public GetRectangle ( float top, float bottom ) : Rectangle
top float the top position
bottom float the bottom position
Результат Rectangle

GetRight() публичный метод

Returns the upper right x-coordinate, considering a given margin.
public GetRight ( float margin ) : float
margin float a margin
Результат float

GetTop() публичный метод

Returns the upper right y-coordinate, considering a given margin.
public GetTop ( float margin ) : float
margin float a margin
Результат float

HasBorder() публичный метод

Indicates if the table has a some type of border.
public HasBorder ( int type ) : bool
type int the type of border
Результат bool

HasBorders() публичный метод

Indicates if the table has borders.
public HasBorders ( ) : bool
Результат bool

IsContent() публичный метод

public IsContent ( ) : bool
Результат bool

IsNestable() публичный метод

public IsNestable ( ) : bool
Результат bool

Normalize() публичный метод

public Normalize ( ) : void
Результат void

Process() публичный метод

Processes the element by adding it (or the different parts) to an IElementListener.
public Process ( IElementListener listener ) : bool
listener IElementListener an IElementListener
Результат bool

Rectangle() публичный метод

Constructs a Rectangle-object.
public Rectangle ( Rectangle rect ) : System
rect Rectangle another Rectangle
Результат System

Rectangle() публичный метод

Constructs a Rectangle-object starting from the origin (0, 0).
public Rectangle ( float urx, float ury ) : System
urx float upper right x
ury float upper right y
Результат System

Rectangle() публичный метод

Constructs a Rectangle-object.
public Rectangle ( float llx, float lly, float urx, float ury ) : System
llx float lower left x
lly float lower left y
urx float upper right x
ury float upper right y
Результат System

Rectangle() публичный метод

public Rectangle ( float llx, float lly, float urx, float ury, int rotation ) : System
llx float
lly float
urx float
ury float
rotation int
Результат System

Rectangle() публичный метод

public Rectangle ( float urx, float ury, int rotation ) : System
urx float
ury float
rotation int
Результат System

Rotate() публичный метод

Swaps the values of urx and ury and of lly and llx in order to rotate the rectangle.
public Rotate ( ) : Rectangle
Результат Rectangle

SoftCloneNonPositionParameters() публичный метод

public SoftCloneNonPositionParameters ( Rectangle rect ) : void
rect Rectangle
Результат void

ToString() публичный метод

public ToString ( ) : String
Результат String

Описание свойств

backgroundColor защищенное свойство

This is the color of the background of this rectangle.
protected BaseColor,iTextSharp.text backgroundColor
Результат BaseColor

border защищенное свойство

This represents the status of the 4 sides of the rectangle.
protected int border
Результат int

borderColor защищенное свойство

This is the color of the border of this rectangle.
protected BaseColor,iTextSharp.text borderColor
Результат BaseColor

borderColorBottom защищенное свойство

protected BaseColor,iTextSharp.text borderColorBottom
Результат BaseColor

borderColorLeft защищенное свойство

protected BaseColor,iTextSharp.text borderColorLeft
Результат BaseColor

borderColorRight защищенное свойство

protected BaseColor,iTextSharp.text borderColorRight
Результат BaseColor

borderColorTop защищенное свойство

protected BaseColor,iTextSharp.text borderColorTop
Результат BaseColor

borderWidth защищенное свойство

This is the width of the border around this rectangle.
protected float borderWidth
Результат float

borderWidthBottom защищенное свойство

protected float borderWidthBottom
Результат float

borderWidthLeft защищенное свойство

protected float borderWidthLeft
Результат float

borderWidthRight защищенное свойство

protected float borderWidthRight
Результат float

borderWidthTop защищенное свойство

protected float borderWidthTop
Результат float

llx защищенное свойство

the lower left x-coordinate.
protected float llx
Результат float

lly защищенное свойство

the lower left y-coordinate.
protected float lly
Результат float

rotation защищенное свойство

This is the rotation value of this rectangle.
protected int rotation
Результат int

urx защищенное свойство

the upper right x-coordinate.
protected float urx
Результат float

ury защищенное свойство

the upper right y-coordinate.
protected float ury
Результат float

useVariableBorders защищенное свойство

protected bool useVariableBorders
Результат bool