Class PdfAnnotationState
Represents the PDF annotation states.
Inheritance
System.Object
PdfAnnotationState
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.NET.dll
Syntax
public sealed class PdfAnnotationState : Enum
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
Accepted
The user agrees with the change.
Declaration
public const PdfAnnotationState Accepted
Field Value
Type |
---|
PdfAnnotationState |
Cancelled
The change has been cancelled.
Declaration
public const PdfAnnotationState Cancelled
Field Value
Type |
---|
PdfAnnotationState |
Completed
The change has been completed.
Declaration
public const PdfAnnotationState Completed
Field Value
Type |
---|
PdfAnnotationState |
Marked
The annotation has been marked by the user.
Declaration
public const PdfAnnotationState Marked
Field Value
Type |
---|
PdfAnnotationState |
None
The user has indicated nothing about the change (the default).
Declaration
public const PdfAnnotationState None
Field Value
Type |
---|
PdfAnnotationState |
Rejected
The user disagrees with the change.
Declaration
public const PdfAnnotationState Rejected
Field Value
Type |
---|
PdfAnnotationState |
Unknown
The annotation review status is Unknow.
Declaration
public const PdfAnnotationState Unknown
Field Value
Type |
---|
PdfAnnotationState |
Unmarked
The annotation has not been marked by the user (the default).
Declaration
public const PdfAnnotationState Unmarked
Field Value
Type |
---|
PdfAnnotationState |