alexa

    Show / Hide Table of Contents

    Class ShapeAnnotationChangedEventArgs

    Provides data for the ShapeAnnotationChanged event.

    Inheritance
    System.Object
    System.EventArgs
    AnnotationChangedEventArgs
    ShapeAnnotationChangedEventArgs
    Inherited Members
    AnnotationChangedEventArgs.Action
    AnnotationChangedEventArgs.Name
    AnnotationChangedEventArgs.NewBounds
    AnnotationChangedEventArgs.OldBounds
    AnnotationChangedEventArgs.PageNumber
    System.EventArgs.Empty
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    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