C# Class iTextSharp.text.Rectangle

A Rectangle is the representation of a geometric figure.
Inheritance: Element, IElement
Afficher le fichier Open project: mapo80/iTextSharp-Monotouch Class Usage Examples

Protected Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
GetVariableBorderWidth ( float variableWidthValue, int side ) : float
UpdateBorderBasedOnWidth ( float width, int side ) : void

Method Details

CloneNonPositionParameters() public méthode

public CloneNonPositionParameters ( Rectangle rect ) : void
rect Rectangle
Résultat void

DisableBorderSide() public méthode

public DisableBorderSide ( int side ) : void
side int
Résultat void

EnableBorderSide() public méthode

public EnableBorderSide ( int side ) : void
side int
Résultat void

GetBottom() public méthode

Returns the lower left y-coordinate, considering a given margin.
public GetBottom ( float margin ) : float
margin float a margin
Résultat float

GetLeft() public méthode

Returns the lower left x-coordinate, considering a given margin.
public GetLeft ( float margin ) : float
margin float a margin
Résultat float

GetRectangle() public méthode

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
Résultat Rectangle

GetRight() public méthode

Returns the upper right x-coordinate, considering a given margin.
public GetRight ( float margin ) : float
margin float a margin
Résultat float

GetTop() public méthode

Returns the upper right y-coordinate, considering a given margin.
public GetTop ( float margin ) : float
margin float a margin
Résultat float

HasBorder() public méthode

Indicates if the table has a some type of border.
public HasBorder ( int type ) : bool
type int the type of border
Résultat bool

HasBorders() public méthode

Indicates if the table has borders.
public HasBorders ( ) : bool
Résultat bool

IsContent() public méthode

public IsContent ( ) : bool
Résultat bool

IsNestable() public méthode

public IsNestable ( ) : bool
Résultat bool

Normalize() public méthode

public Normalize ( ) : void
Résultat void

Process() public méthode

Processes the element by adding it (or the different parts) to an IElementListener.
public Process ( IElementListener listener ) : bool
listener IElementListener an IElementListener
Résultat bool

Rectangle() public méthode

Constructs a Rectangle-object.
public Rectangle ( Rectangle rect ) : System
rect Rectangle another Rectangle
Résultat System

Rectangle() public méthode

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
Résultat System

Rectangle() public méthode

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
Résultat System

Rectangle() public méthode

public Rectangle ( float llx, float lly, float urx, float ury, int rotation ) : System
llx float
lly float
urx float
ury float
rotation int
Résultat System

Rectangle() public méthode

public Rectangle ( float urx, float ury, int rotation ) : System
urx float
ury float
rotation int
Résultat System

Rotate() public méthode

Swaps the values of urx and ury and of lly and llx in order to rotate the rectangle.
public Rotate ( ) : Rectangle
Résultat Rectangle

SoftCloneNonPositionParameters() public méthode

public SoftCloneNonPositionParameters ( Rectangle rect ) : void
rect Rectangle
Résultat void

ToString() public méthode

public ToString ( ) : String
Résultat String

Property Details

backgroundColor protected_oe property

This is the color of the background of this rectangle.
protected BaseColor,iTextSharp.text backgroundColor
Résultat BaseColor

border protected_oe property

This represents the status of the 4 sides of the rectangle.
protected int border
Résultat int

borderColor protected_oe property

This is the color of the border of this rectangle.
protected BaseColor,iTextSharp.text borderColor
Résultat BaseColor

borderColorBottom protected_oe property

protected BaseColor,iTextSharp.text borderColorBottom
Résultat BaseColor

borderColorLeft protected_oe property

protected BaseColor,iTextSharp.text borderColorLeft
Résultat BaseColor

borderColorRight protected_oe property

protected BaseColor,iTextSharp.text borderColorRight
Résultat BaseColor

borderColorTop protected_oe property

protected BaseColor,iTextSharp.text borderColorTop
Résultat BaseColor

borderWidth protected_oe property

This is the width of the border around this rectangle.
protected float borderWidth
Résultat float

borderWidthBottom protected_oe property

protected float borderWidthBottom
Résultat float

borderWidthLeft protected_oe property

protected float borderWidthLeft
Résultat float

borderWidthRight protected_oe property

protected float borderWidthRight
Résultat float

borderWidthTop protected_oe property

protected float borderWidthTop
Résultat float

llx protected_oe property

the lower left x-coordinate.
protected float llx
Résultat float

lly protected_oe property

the lower left y-coordinate.
protected float lly
Résultat float

rotation protected_oe property

This is the rotation value of this rectangle.
protected int rotation
Résultat int

urx protected_oe property

the upper right x-coordinate.
protected float urx
Résultat float

ury protected_oe property

the upper right y-coordinate.
protected float ury
Résultat float

useVariableBorders protected_oe property

protected bool useVariableBorders
Résultat bool