Click or drag to resize

WpfLayerCollectionIndexOf Method

Returns the collection index of the specified WpfLayerAnnotation.

Namespace:  Atalasoft.Annotate.Wpf
Assembly:  Atalasoft.dotImage.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public int IndexOf(
	WpfLayerAnnotation layer
)

Parameters

layer
Type: Atalasoft.Annotate.WpfWpfLayerAnnotation
The layer or search for.

Return Value

Type: Int32
The index of the layer or -1 if the layer is not contained within this collection.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if the layer argument is null (Nothing in VB).
See Also