Click or drag to resize

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: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public int CountAnnotations(
	WpfLayerAnnotation layer
)

Parameters

layer
Type: Atalasoft.Annotate.WpfWpfLayerAnnotation
The layer to count annotations from.

Return Value

Type: Int32
The number of annotations found in the layer.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if the layer argument is null (Nothing in VB).
Remarks
Group annotations will only count as 1 annotation.
See Also