DrawingRectangle

DrawingRectangle

Overview

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

A rectangle shape.

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

Properties

NameTypeAccessDescription
XdoubleRead/WriteGets or sets the x.
YdoubleRead/WriteGets or sets the y.
WidthdoubleRead/WriteGets or sets the width.
HeightdoubleRead/WriteGets or sets the height.
RoundedCornerRadiusdoubleRead/WriteCorner radius for rounded rectangles.
GraphInfoAspose.Pdf.GraphInfoRead/WriteGets or sets the graph info.
TextAspose.Pdf.Text.TextFragment?Read/WriteOptional text label rendered with the shape.

Methods

SignatureDescription
DrawingRectangle(x: double, y: double, width: double, height: double)Calls DrawingRectangle on this DrawingRectangle instance.
CheckBounds(containerWidth: double, containerHeight: double)Whether this shape lies within a containerWidth×containerHeight box anchored at the origin.

See Also