WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ShapeAnnotationChangedEventArgs

    Show / Hide Table of Contents

    Class ShapeAnnotationChangedEventArgs

    Provides data for the ShapeAnnotationChanged event.

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

    Settings

    Gets the settings of the shape annotation

    Declaration
    public ShapeAnnotationSettings Settings { get; }
    Property Value
    Type Description
    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 Description
    ShapeAnnotationType
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved