Table of Contents

Class Rect

Namespace
PDFjet.NET
Assembly
PDFjet.dll

A rectangle that can be drawn on a page.

public class Rect : IDrawable
Inheritance
Rect
Implements
Inherited Members

Constructors

Rect()

The default constructor.

public Rect()

Rect(float, float, float, float)

Creates a rectangle with its top left corner at x, y and the specified width and height.

public Rect(float x, float y, float w, float h)

Parameters

x float
y float
w float
h float

Methods

DrawOn(Page)

Draws this rectangle on the specified page.

public float[] DrawOn(Page page)

Parameters

page Page

Returns

float[]

ScaleBy(float)

Scales the width, height and corner radius of this rectangle by the specified factor. The location does not change.

public Rect ScaleBy(float factor)

Parameters

factor float

Returns

Rect

SetActualText(string)

Sets the actual text of this rectangle, used for accessibility.

public Rect SetActualText(string actualText)

Parameters

actualText string

Returns

Rect

SetAltDescription(string)

Sets the alternate description of this rectangle, used for accessibility.

public Rect SetAltDescription(string altDescription)

Parameters

altDescription string

Returns

Rect

SetBorderColor(int)

Sets the border color as a 0xRRGGBB value. Color.transparent removes the border.

public Rect SetBorderColor(int color)

Parameters

color int

Returns

Rect

SetBorderColor(float[])

Sets the border color from an array of red, green and blue values, or null for no border.

public Rect SetBorderColor(float[] rgbColor)

Parameters

rgbColor float[]

Returns

Rect

SetBorderDashPattern(string)

Sets the dash pattern of the border.

public Rect SetBorderDashPattern(string borderPattern)

Parameters

borderPattern string

Returns

Rect

SetBorderWidth(float)

Sets the border width.

public Rect SetBorderWidth(float width)

Parameters

width float

Returns

Rect

SetCornerRadius(float)

Sets the corner radius.

public Rect SetCornerRadius(float r)

Parameters

r float

Returns

Rect

SetFillColor(int)

Sets the fill color as a 0xRRGGBB value. Color.transparent leaves it unchanged.

public Rect SetFillColor(int color)

Parameters

color int

Returns

Rect

SetFillColor(float[])

Sets the fill color from an array of red, green and blue values.

public Rect SetFillColor(float[] rgbColor)

Parameters

rgbColor float[]

Returns

Rect

SetGoToAction(string)

Sets the destination key used when this rectangle is clicked.

public Rect SetGoToAction(string key)

Parameters

key string

Returns

Rect

SetLanguage(string)

Sets the language of this rectangle, used for accessibility. When it is not set, the language of the document is used.

public Rect SetLanguage(string language)

Parameters

language string

Returns

Rect

SetLocation(float, float)

Sets the location of the top left corner of this rectangle.

public Rect SetLocation(float x, float y)

Parameters

x float
y float

Returns

Rect

SetSize(float, float)

Sets the size of this rectangle.

public Rect SetSize(float w, float h)

Parameters

w float
h float

Returns

Rect

SetURIAction(string)

Sets the URI opened when this rectangle is clicked.

public Rect SetURIAction(string uri)

Parameters

uri string

Returns

Rect