Rectangle

Overview

Rectangle is a class in Aspose.PDF FOSS for .NET. Inherits from: Shape.

A rectangle shape in the Drawing namespace (distinct from Aspose.Pdf.Rectangle which is a page rectangle).

This class provides 3 methods for working with Rectangle objects in .NET programs. Available methods include: CheckBounds, Rectangle. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Bottom, GraphInfo, Height, Left, RoundedCornerRadius, Text, and 1 more.

Properties

NameTypeAccessDescription
LeftdoubleRead/WriteGets or sets the left.
BottomdoubleRead/WriteGets or sets the bottom.
WidthdoubleRead/WriteGets or sets the width.
HeightdoubleRead/WriteGets or sets the height.
RoundedCornerRadiusdoubleRead/WriteCorner radius for rounded-rectangle rendering (0 = sharp corners).
GraphInfoAspose.Pdf.GraphInfoRead/WriteGets or sets the graph info.
TextAspose.Pdf.Text.TextFragment?Read/WriteOptional text label rendered with the shape.

Methods

SignatureDescription
Rectangle(left: double, bottom: double, width: double, height: double)Calls Rectangle on this Rectangle instance.
Rectangle(left: float, bottom: float, width: float, height: float)Single-precision overload.
CheckBounds(containerWidth: double, containerHeight: double)Whether the rectangle lies entirely within an origin-anchored container.

See Also