menu

Document Processing

ShapeAnnotationChangedEventArgs Class - C# PDF Library API Reference | Syncfusion

    Show / Hide Table of Contents

    ShapeAnnotationChangedEventArgs Class

    Provides data for the ShapeAnnotationChanged event.

    Inheritance
    System.Object
    AnnotationChangedEventArgs
    ShapeAnnotationChangedEventArgs
    Inherited Members
    AnnotationChangedEventArgs.Action
    AnnotationChangedEventArgs.Name
    AnnotationChangedEventArgs.NewBounds
    AnnotationChangedEventArgs.OldBounds
    AnnotationChangedEventArgs.PageNumber
    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
    PdfViewerArrowSettings
    PdfViewerCircleSettings
    PdfViewerLineSettings
    PdfViewerPolygonSettings
    PdfViewerPolylineSettings

    Type

    Gets a value that indicates the type of shape annotation.

    Declaration
    public ShapeAnnotationType Type { get; }
    Property Value
    Type
    ShapeAnnotationType
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved