WpfAnnotationCanvasCountAnnotations Method (WpfLayerAnnotation) |
Counts the number of annotations in the provided layer.
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 CountAnnotations(
WpfLayerAnnotation layer
)
Public Function CountAnnotations (
layer As WpfLayerAnnotation
) As Integer
Parameters
- layer
- Type: Atalasoft.Annotate.WpfWpfLayerAnnotation
The layer to count annotations from.
Return Value
Type:
Int32The number of annotations found in the layer.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | Thrown if the layer argument is null (Nothing in VB). |
RemarksGroup annotations will only count as 1 annotation.
See Also