Click or drag to resize

AnnotationUICollectionInsert Method

Inserts an annotation into the collection at the specified position.

Namespace:  Atalasoft.Annotate.UI
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public void Insert(
	int index,
	AnnotationUI annotation
)

Parameters

index
Type: SystemInt32
The index in the collection where the annotation will be inserted.
annotation
Type: Atalasoft.Annotate.UIAnnotationUI
The annotation to insert.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if the annotation parameter is null.
ArgumentOutOfRangeExceptionThrown if the index parameter is out of range for this collection.
ArgumentExceptionThrown if the annotation already exists in the collection. To move an annotation to a different location, use the ChangePosition method.
See Also