Click or drag to resize

AnnotationControllerGetTopLevelLayer Method

Returns the top level LayerAnnotation for the supplied annotation. This method will scan through the nested layers until it finds the top most layer.

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 LayerAnnotation GetTopLevelLayer(
	AnnotationUI annotation
)

Parameters

annotation
Type: Atalasoft.Annotate.UIAnnotationUI
The annotation where the search will begin.

Return Value

Type: LayerAnnotation
The LayerAnnotation that is loaded in the Layers collection or null (Nothing in VB) if no parent layer is found.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if the annotation argument is null (Nothing in VB).
See Also