Click or drag to resize

BaseAnnotationIsDirty Property

Gets or sets a value indicating whether the annotation is dirty and in need of being written.

Namespace:  Atalasoft.PdfDoc.Generating.Annotations
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public bool IsDirty { get; set; }

Property Value

Type: Boolean
true if the annotation is dirty; otherwise, false.
Remarks
This property is, at present, used only by the PdfDocumentSigner object in order to track annotations and fields that have been changed in order to update them in the output. This property is automatically set in the act of setting any property in the annotation, however, it is not set when changing the contents of a property.
someAnnotation.AppearanceSet = GenerateNewAppearanceSet(); // someAnnotation.IsDirty is now true
someAnnotation.IsDirty = false;
someAnnotation.AppearanceSet.Normal.Add("SomeName", "SomeTemplate"); // someAnnotation.IsDirty is still false
Therefore, an application that intends to modify annotations should, as a matter of course, mark them dirty so that they will be updated in the output.
See Also