Table of Contents

Class RectangleReadOnly

Namespace
iTextSharp.text
Assembly
iTextSharp.LGPLv2.Core.dll

A RectangleReadOnly is the representation of a geometric figure. It's the same as a Rectangle but immutable.

public class RectangleReadOnly : Rectangle, IElement
Inheritance
RectangleReadOnly
Implements
Inherited Members

Constructors

RectangleReadOnly(float, float)

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

public RectangleReadOnly(float urx, float ury)

Parameters

urx float

upper right x

ury float

upper right y

RectangleReadOnly(float, float, float, float)

constructors

public RectangleReadOnly(float llx, float lly, float urx, float ury)

Parameters

llx float

lower left x

lly float

lower left y

urx float

upper right x

ury float

upper right y

RectangleReadOnly(Rectangle)

Constructs a RectangleReadOnly-object.

public RectangleReadOnly(Rectangle rect)

Parameters

rect Rectangle

another Rectangle

Properties

BackgroundColor

Gets the backgroundcolor.

public override BaseColor BackgroundColor { set; }

Property Value

BaseColor

a value

Border

Get/set the border

public override int Border { set; }

Property Value

int

a int

BorderColor

Gets the color of the border.

public override BaseColor BorderColor { set; }

Property Value

BaseColor

a value

BorderColorBottom

public override BaseColor BorderColorBottom { set; }

Property Value

BaseColor

BorderColorLeft

public override BaseColor BorderColorLeft { set; }

Property Value

BaseColor

BorderColorRight

public override BaseColor BorderColorRight { set; }

Property Value

BaseColor

BorderColorTop

public override BaseColor BorderColorTop { set; }

Property Value

BaseColor

BorderWidth

Get/set the borderwidth.

public override float BorderWidth { set; }

Property Value

float

a float

BorderWidthBottom

public override float BorderWidthBottom { set; }

Property Value

float

BorderWidthLeft

public override float BorderWidthLeft { set; }

Property Value

float

BorderWidthRight

public override float BorderWidthRight { set; }

Property Value

float

BorderWidthTop

public override float BorderWidthTop { set; }

Property Value

float

Bottom

Get/set the lower left y-coordinate.

public override float Bottom { set; }

Property Value

float

a float

GrayFill

Get/set the grayscale of the rectangle.

public override float GrayFill { set; }

Property Value

float

a float

Left

Get/set the lower left x-coordinate.

public override float Left { set; }

Property Value

float

a float

Right

methods to get the membervariables

public override float Right { set; }

Property Value

float

a float

Top

Get/set the upper right y-coordinate.

public override float Top { set; }

Property Value

float

a float

UseVariableBorders

Sets a parameter indicating if the rectangle has variable borders indication if the rectangle has variable borders

public override bool UseVariableBorders { set; }

Property Value

bool

Methods

CloneNonPositionParameters(Rectangle)

Copies all of the parameters from a Rectangle object except the position. Rectangle to copy from

public override void CloneNonPositionParameters(Rectangle rect)

Parameters

rect Rectangle

DisableBorderSide(int)

Disables the border on the specified side. the side to disable. One of LEFT, RIGHT, TOP, BOTTOM

public override void DisableBorderSide(int side)

Parameters

side int

EnableBorderSide(int)

methods to set the membervariables

public override void EnableBorderSide(int side)

Parameters

side int

Normalize()

Switches lowerleft with upperright

public override void Normalize()

SoftCloneNonPositionParameters(Rectangle)

public override void SoftCloneNonPositionParameters(Rectangle rect)

Parameters

rect Rectangle

ToString()

Copies all of the parameters from a Rectangle object except the position. Rectangle to copy from

public override string ToString()

Returns

string