AutomationProperties.GetPositionInSet(DependencyObject) Method

Definition

Gets the value of the PositionInSet property for the specified DependencyObject.

C#
public static int GetPositionInSet(System.Windows.DependencyObject element);

Parameters

element
DependencyObject

The dependency object on which to get the property value.

Returns

The value of the PositionInSet attached property of element.

Remarks

The PositionInSet property defines the ordinal position of the element within a set of elements that are considered to be siblings.

Applies to

Product Versions
.NET Framework 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10