LayerCollectionInsert Method |
Inserts a layer into the collection at the specified index.
Namespace:
Atalasoft.Annotate.UI
Assembly:
Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 2026.2.0.0.42 (.NET 4.6.2, x86)
Syntaxpublic void Insert(
int index,
LayerAnnotation layer
)
Public Sub Insert (
index As Integer,
layer As LayerAnnotation
)
Parameters
- index
- Type: SystemInt32
The position within the collection this layer should be placed. - layer
- Type: Atalasoft.Annotate.UILayerAnnotation
The layer to insert.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | Thrown if the layer parameter is null. |
| ArgumentOutOfRangeException | Thrown if the index parameter is out of range for this collection. |
See Also