C# Class iTextSharp.text.Rectangle

A Rectangle is the representation of a geometric figure.
Inheritance: Element, IElement
ファイルを表示 Open project: mapo80/iTextSharp-Monotouch Class Usage Examples

Protected Properties

Property 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

Public Methods

Method 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

Method Description
GetVariableBorderWidth ( float variableWidthValue, int side ) : float
UpdateBorderBasedOnWidth ( float width, int side ) : void

Method Details

CloneNonPositionParameters() public method

public CloneNonPositionParameters ( Rectangle rect ) : void
rect Rectangle
return void

DisableBorderSide() public method

public DisableBorderSide ( int side ) : void
side int
return void

EnableBorderSide() public method

public EnableBorderSide ( int side ) : void
side int
return void

GetBottom() public method

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

GetLeft() public method

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

GetRectangle() public method

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
return Rectangle

GetRight() public method

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

GetTop() public method

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

HasBorder() public method

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

HasBorders() public method

Indicates if the table has borders.
public HasBorders ( ) : bool
return bool

IsContent() public method

public IsContent ( ) : bool
return bool

IsNestable() public method

public IsNestable ( ) : bool
return bool

Normalize() public method

public Normalize ( ) : void
return void

Process() public method

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

Rectangle() public method

Constructs a Rectangle-object.
public Rectangle ( Rectangle rect ) : System
rect Rectangle another Rectangle
return System

Rectangle() public method

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
return System

Rectangle() public method

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
return System

Rectangle() public method

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

Rectangle() public method

public Rectangle ( float urx, float ury, int rotation ) : System
urx float
ury float
rotation int
return System

Rotate() public method

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

SoftCloneNonPositionParameters() public method

public SoftCloneNonPositionParameters ( Rectangle rect ) : void
rect Rectangle
return void

ToString() public method

public ToString ( ) : String
return String

Property Details

backgroundColor protected_oe property

This is the color of the background of this rectangle.
protected BaseColor,iTextSharp.text backgroundColor
return BaseColor

border protected_oe property

This represents the status of the 4 sides of the rectangle.
protected int border
return int

borderColor protected_oe property

This is the color of the border of this rectangle.
protected BaseColor,iTextSharp.text borderColor
return BaseColor

borderColorBottom protected_oe property

protected BaseColor,iTextSharp.text borderColorBottom
return BaseColor

borderColorLeft protected_oe property

protected BaseColor,iTextSharp.text borderColorLeft
return BaseColor

borderColorRight protected_oe property

protected BaseColor,iTextSharp.text borderColorRight
return BaseColor

borderColorTop protected_oe property

protected BaseColor,iTextSharp.text borderColorTop
return BaseColor

borderWidth protected_oe property

This is the width of the border around this rectangle.
protected float borderWidth
return float

borderWidthBottom protected_oe property

protected float borderWidthBottom
return float

borderWidthLeft protected_oe property

protected float borderWidthLeft
return float

borderWidthRight protected_oe property

protected float borderWidthRight
return float

borderWidthTop protected_oe property

protected float borderWidthTop
return float

llx protected_oe property

the lower left x-coordinate.
protected float llx
return float

lly protected_oe property

the lower left y-coordinate.
protected float lly
return float

rotation protected_oe property

This is the rotation value of this rectangle.
protected int rotation
return int

urx protected_oe property

the upper right x-coordinate.
protected float urx
return float

ury protected_oe property

the upper right y-coordinate.
protected float ury
return float

useVariableBorders protected_oe property

protected bool useVariableBorders
return bool