Polygon Class
Polygon is a public class that defines a two-dimensional region within a coordinate space.
Definition
- Namespace:
UiPath.DocumentProcessing.Contracts - Assembly:
UiPath.DocumentProcessing.Contracts
Description
A public class that defines a two-dimensional region within a coordinate space.
Members
Constructors
Polygon(System.Collections.Generic.IEnumerable<System.Drawing.PointF>)
- The public constructor. Assigns spacial coordinates to a geometrical shape. Exactly 4 points are expected, they need to be in clockwise order and they need to describe a valid (non self-intersecting) polygon.
Methods
ToFloatArray(float) - Converts the polygon points array to an array of float coordinates.GetSchema()- This method is reserved and should not be used. When implementing theIXmlSerializableinterface, you should returnnull(Nothingin Visual Basic) from this method, and instead, if specifying a custom schema is required, apply theSystem.Xml.Serialization.XmlSchemaProviderAttributeto the class.ReadXml(**System.Xml.XmlReader**)- Generates an object from its XML representation.WriteXml(**System.Xml.XmlWriter**)- Converts an object into its XML representation.
Properties
Pointsget- The array of points describing the polygon path.