Replaces the annotations container for this page.
public void setAnnotations(AnnContainer container)
New annotations container to use for this page. This value can be null.
GetAnnotations is used to get the annotations container of this page. All document types support this method.
SetAnnotations is used to replace the annotation container of the page. IsAnnotationsModified is used to as flag that indicates that the annotations container of this page has been replaced by the user.
This method works as follows (the "item" is the new annotations container):
This method requires that the owner document uses a cache system (Document.HasCache is true), otherwise; an exception will be thrown.
Any previously saved annotations container object for this page are purged from the cache.
GetAnnotations will check the cache first, hence, subsequent calls will return the value set by this method.
The value of IsAnnotationsModified will be set to true after this method returns.
Refer to Loading Using LEADTOOLS Documents Library for more information.
Medical Web Viewer .NET