Polygon

Overview

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

A polygon shape (closed path with arbitrary vertices).

This class provides 2 methods for working with Polygon objects in .NET programs. Available methods include: CheckBounds, Polygon. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: GraphInfo, Points, Text.

Properties

NameTypeAccessDescription
Points(double X, double Y)[]Read/WriteGets or sets the points.
GraphInfoAspose.Pdf.GraphInfoRead/WriteGets or sets the graph info.
TextAspose.Pdf.Text.TextFragment?Read/WriteOptional text label rendered with the shape.

Methods

SignatureDescription
Polygon(points)Calls Polygon on this Polygon instance.
CheckBounds(containerWidth: double, containerHeight: double)Whether this shape lies within a containerWidth×containerHeight box anchored at the origin.

See Also