VisualTreeChangeEventArgs::ChildIndex Property

.NET Framework (current version)
 

Gets the index in the Parent element’s children where the Child element is located when the add or remove operation is complete. On a removal, this value will always be -1.

Namespace:   System.Windows.Diagnostics
Assembly:  PresentationCore (in PresentationCore.dll)

public:
property int ChildIndex {
	int get();
	private: void set(int value);
}

Property Value

Type: System::Int32

The index in the Parent element’s children where the Child element is located when the add or remove operation is complete.

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

.NET Framework
Available since 4.6
Return to top
Show: