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:
public class RectangleGeometry : GeometryBase
Inheritance: objectGeometryBaseRectangleGeometry
Inherited Members
Constructors
Create a new RectangleGeometry with an empty rectangle (zero width and height) in document coordinates.
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).
public RectangleGeometry(Rect rect)
The rectangle that defines the geometry's bounds and shape.
Methods
GetBounds()
Rect
Gets the geometry bounds.
protected override Rect GetBounds()
Rect
The rectangular bounds of this geometry.
Overrides:
Properties
Rect
Rect
Gets or sets the rectangle that determines this geometry's position and size in document coordinates, directly affecting the drawn region.
public Rect Rect { get; set; }
The rectangle that specifies the position, width, and height of this geometry.