←Select platform

IsContainerModified Method

Summary

Indicates whether the specified page's annotation container has been modified

Syntax
C#
VB
C++
publicboolIsContainerModified(intpageNumber)
PublicFunctionIsContainerModified(ByValpageNumberAsInteger)AsBoolean
public:boolIsContainerModified(intpageNumber)

Parameters

pageNumber

1-based page number in the document

Return Value

trueif the specified page's annotation container has been modified; otherwise,false.

Remarks

DocumentViewerAnnotationskeeps track of all the modifications that occur to the annotation container of the pages after load. For example, when the user edit, adds or deletes or change the properties of the annotation objects.

This state can be used by the application to track when the document becomes "dirty" and save is required.

The state is tracked internally byDocumentViewerAnnotationswhen the objects are modified using the built-in automation. If the application changes an annotation container directly without using automation, then it is not recorded by the automation and thisDocumentViewerAnnotationsdoes not update the internal state.

UseSetContainerModifiedto mark a container as modified (or clear the state) andIsContainerModifiedto obtain the current modification state of a container.

Requirements
Target Platforms
Leadtools.Document.Viewer.WinForms Assembly