Click or drag to resize

AnnotateViewerImportAnnotations Method

Using the provided importer, this method will add annotations into the viewer.

Imports annotations using the specified importer and frame index.

Namespace:  Atalasoft.Annotate.UI
Assembly:  Atalasoft.dotImage.WinControls (in Atalasoft.dotImage.WinControls.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
protected virtual void ImportAnnotations(
	AnnotationDataImporter importer,
	int frameIndex
)

Parameters

importer
Type: Atalasoft.Annotate.ImportersAnnotationDataImporter
The importer to use.
frameIndex
Type: SystemInt32
The frame index to extract annotations from or -1 to extract from all pages. See Remarks for more information.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if the importer is null (Nothing in VB).
Remarks

If -1 is passed for frameIndex, all existing layers in the viewer will be removed and replaced with annotations pulled from the importer. If frameIndex is 0 or greater, a new layer will be added to the viewer containing annotations from the specified page.

See Also