Class
RectangleGeometry

Rectangular geometry used to draw or define rectangular regions in fixed documents. Coordinates use the document origin at the top-left; X increases to the right and Y increases downward.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.Graphics

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

cs-api-definition
public class RectangleGeometry : GeometryBase

Inheritance: objectGeometryBaseRectangleGeometry

Inherited Members GeometryBase.Bounds

Constructors

RectangleGeometry()

Create a new RectangleGeometry with an empty rectangle (zero width and height) in document coordinates.

Declaration

cs-api-definition
public RectangleGeometry()

RectangleGeometry(Rect)

Create a new RectangleGeometry using the specified rectangle; values are interpreted in document coordinates (origin at top-left, X grows right, Y grows down).

Declaration

cs-api-definition
public RectangleGeometry(Rect rect)

Parameters

rect

Rect

The rectangle that defines the geometry's bounds and shape.

Properties

Rect

Gets or sets the rectangle that determines this geometry's position and size in document coordinates, directly affecting the drawn region.

Declaration

cs-api-definition
public Rect Rect { get; set; }

Property Value

Rect

The rectangle that specifies the position, width, and height of this geometry.

Methods

GetBounds()

Gets the geometry bounds.

Declaration

cs-api-definition
protected override Rect GetBounds()

Returns

Rect

The rectangular bounds of this geometry.

Overrides GeometryBase.GetBounds()