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
)
Public Sub Insert (
index As Integer,
annotation As AnnotationUI
)
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 Exception | Condition |
---|
ArgumentNullException | Thrown if the annotation parameter is null. |
ArgumentOutOfRangeException | Thrown if the index parameter is out of range for this collection. |
ArgumentException | Thrown if the annotation already exists in the collection.
To move an annotation to a different location, use the ChangePosition method. |
See Also