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
Namespace: PSPDFKit.Sdk.Models.Annotation.Shape
Assembly: Sdk.dll
Syntax
public sealed class Polygon : ShapeAnnotationBase, IAnnotation

Properties

| Edit this page View Source

CloudyBorderInset

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
| Edit this page View Source

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?
| Edit this page View Source

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 Source

ToJson()

Declaration
public override string ToJson()
Returns
Type Description
string
Overrides
AnnotationBase.ToJson()

Implements

IAnnotation