Class Polygon
Polygon annotations are used to hand draw polygons on a page. They can contain any number of sides defined by the polygon vertices. If no points are present, the annotation will not be visible.
Implements
Inherited Members
Namespace: PSPDFKit.Sdk.Models.Annotation.Shape
Assembly: Sdk.dll
Syntax
public sealed class Polygon : ShapeAnnotationBase, IAnnotation
Properties
| Edit this page View SourceCloudyBorderInset
For annotations with a cloudy border it is drawn in a box determined by shrinking the annotation's bounding box by its inset property values.
Declaration
[JsonProperty(NamingStrategyType = typeof(CamelCaseNamingStrategy), NullValueHandling = NullValueHandling.Ignore)]
[JsonConverter(typeof(InsetsJsonConverter))]
public Insets CloudyBorderInset { get; set; }
Property Value
Type | Description |
---|---|
Insets |
CloudyBorderIntensity
The annotation is rendered with a cloudy border style if the value greater than 0.
Declaration
[JsonProperty(NamingStrategyType = typeof(CamelCaseNamingStrategy), NullValueHandling = NullValueHandling.Ignore)]
public float? CloudyBorderIntensity { get; set; }
Property Value
Type | Description |
---|---|
float? |
Points
The points defining the polygon.
Declaration
[JsonProperty(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
public IList<PointF> Points { get; set; }
Property Value
Type | Description |
---|---|
IList<PointF> |
Methods
| Edit this page View SourceToJson()
Declaration
public override string ToJson()
Returns
Type | Description |
---|---|
string |