WpfLayerCollectionIndexOf Method |
Returns the collection index of the specified WpfLayerAnnotation.
Namespace:
Atalasoft.Annotate.Wpf
Assembly:
Atalasoft.dotImage.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 2026.2.0.0.42 (.NET 4.6.2, x86)
Syntaxpublic int IndexOf(
WpfLayerAnnotation layer
)
Public Function IndexOf (
layer As WpfLayerAnnotation
) As Integer
Parameters
- layer
- Type: Atalasoft.Annotate.WpfWpfLayerAnnotation
The layer or search for.
Return Value
Type:
Int32The index of the layer or -1 if the layer is not contained within this collection.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | Thrown if the layer argument is null (Nothing in VB). |
See Also