menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Enum PdfAnnotationStateModel - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Enum PdfAnnotationStateModel

    Represents the PDF annotation state models.

    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public enum PdfAnnotationStateModel
    Examples
    //Load an existing document.
    PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
    //Load the existing PdfFreeTextAnnotation
    PdfLoadedFreeTextAnnotation  free = document.Pages[0].Annotations[0] as PdfLoadedFreeTextAnnotation;
    //Get the review collection
    PdfLoadedPopupAnnotationCollection reviewCollection = free.ReviewHistory;
    foreach (PdfLoadedPopupAnnotation popup in reviewCollection){
    //Gets the annotation state
    PdfAnnotationState state = popup.AnnotationState;
    //Gets the annotation state model 
    PdfAnnotationStateModel model = popup.AnnotationStateModel;
    }
    //save the document
    document.Save("FreetextAnnotation.pdf");
    //Close the docuemnt
    document.Close(true);
    'Load an existing document.
    Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
    'Load the existing PdfFreeTextAnnotation
    Dim free As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0)
    'Get the review collection
    Dim reviewCollection As PdfLoadedPopupAnnotationCollection = free.ReviewHistory
    For Each popup As PdfLoadedPopupAnnotation In reviewCollection
    'Get the annotation state
    Dim state As PdfAnnotationState = popup.AnnotationState
    'Get the annotation state model
    Dim model As PdfAnnotationStateModel = popup.AnnotationStateModel
    Next
    'save the document
    document.Save("FreetextAnnotation.pdf")
    'Close the document.
    document.Close(True)

    Fields

    Name Description
    Marked

    The annotation has been marked by the user.

    None

    default.

    Review

    The annotation has been reviewed by the user.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved