Click or drag to resize

LayerCollectionReplace Method (LayerAnnotation, LayerAnnotation)

Replaces an existing layer with another one.

Namespace:  Atalasoft.Annotate.UI
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public void Replace(
	LayerAnnotation oldLayer,
	LayerAnnotation newLayer
)

Parameters

oldLayer
Type: Atalasoft.Annotate.UILayerAnnotation
The layer currently in the collection.
newLayer
Type: Atalasoft.Annotate.UILayerAnnotation
The layer to insert into the collection.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if either argument is null (Nothing in VB).
ArgumentException Thrown if the old layer does not exist in the collection.
See Also