Class ShapeAnnotationChangedEventArgs
Provides data for the ShapeAnnotationChanged event.
Inherited Members
Namespace: Syncfusion.Windows.PdfViewer
Assembly: Syncfusion.PdfViewer.WPF.dll
Syntax
public class ShapeAnnotationChangedEventArgs : AnnotationChangedEventArgs
Properties
Points
Get a collection of Point values of polygon and polyline annotations that can be individually accessed by index.
Declaration
public ReadOnlyCollection<Point> Points { get; }
Property Value
Type |
---|
System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Point> |
Settings
Gets the settings of the shape annotation
Declaration
public ShapeAnnotationSettings Settings { get; }
Property Value
Type |
---|
ShapeAnnotationSettings |
Remarks
The value requires type casting to the particular shape annotation type.
Examples
For Rectangle, the value requires type casting to PdfViewerRectangleSettings
pdfViewer.ShapeAnnotationChanged += PdfViewer_ShapeAnnotationChanged;
private void PdfViewer_ShapeAnnotationChanged(object sender, ShapeAnnotationChangedEventArgs e)
{
if (e.Type == ShapeAnnotationType.Rectangle)
{
PdfViewerRectangleSettings rectangleSettings = e.Settings as PdfViewerRectangleSettings;
}
}
See Also
Type
Gets a value that indicates the type of shape annotation.
Declaration
public ShapeAnnotationType Type { get; }
Property Value
Type |
---|
ShapeAnnotationType |