New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public class RectangleGeometry : GeometryBase

Inheritance: objectGeometryBaseRectangleGeometry

Inherited Members GeometryBase.Bounds

Constructors

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

C#
public RectangleGeometry()

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

C#
public RectangleGeometry(Rect rect)
Parameters:rectRect

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

Methods

Gets the geometry bounds.

C#
protected override Rect GetBounds()
Returns:

Rect

The rectangular bounds of this geometry.

Overrides: GeometryBase.GetBounds()

Properties

Rect

Rect

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

C#
public Rect Rect { get; set; }
Property Value:

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