Click or drag to resize

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: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public void Replace(
	int index,
	LayerAnnotation newLayer
)

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
ExceptionCondition
ArgumentOutOfRangeException Thrown if the index is invalid for this collection.
ArgumentNullException Thrown if the new layer is null (Nothing in VB).
See Also