AutomationProperties.GetLevel(DependencyObject) Method

Definition

Gets the value of the AutomationProperties.Level property for the specified element.

public:
 static int GetLevel(DependencyObject ^ element);
 static int GetLevel(DependencyObject const& element);
public static int GetLevel(DependencyObject element);
function getLevel(element)
Public Shared Function GetLevel (element As DependencyObject) As Integer

Parameters

element
DependencyObject

The DependencyObject to check.

Returns

Int32

int

The value of the AutomationProperties.Level property.

Applies to

See also