LayerCollectionReplace Method (Int32, LayerAnnotation) |
Replaces a layer at the specified index with the provided layer.
Namespace:
Atalasoft.Annotate.UI
Assembly:
Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 2026.2.0.0.42 (.NET 4.6.2, x86)
Syntaxpublic void Replace(
int index,
LayerAnnotation newLayer
)
Public Sub Replace (
index As Integer,
newLayer As LayerAnnotation
)
Parameters
- index
- Type: SystemInt32
The index of the layer to replace. - newLayer
- Type: Atalasoft.Annotate.UILayerAnnotation
The new layer to insert into the collection.
Exceptions| Exception | Condition |
|---|
| ArgumentOutOfRangeException | Thrown if the index is invalid for this collection. |
| ArgumentNullException | Thrown if the new layer is null (Nothing in VB). |
See Also