Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetZIndex Method

Panel.GetZIndex Method

Gets the value of the ZIndex property for a given element.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public static int GetZIndex(
	UIElement element
)

Parameters

element
Type: System.Windows.UIElement

The element for which to retrieve the ZIndex value.

Return Value

Type: System.Int32
The ZIndex position of the element.

ExceptionCondition
ArgumentNullException

The element is null.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft