This documentation is archived and is not being maintained.

Track.GetVisualChild Method

Gets the child of the Track at the specified index.

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

protected override Visual GetVisualChild (
	int index
)
protected Visual GetVisualChild (
	int index
)
protected override function GetVisualChild (
	index : int
) : Visual
You cannot use methods in XAML.

Parameters

index

The index of the child.

Return Value

Returns the object of the Track at the specified index in the list of visual child elements. The index must be a number between zero (0) and the value of the VisualChildrenCount property minus one (1).

Exception typeCondition

ArgumentOutOfRangeException

The specified index is greater than the value of the VisualChildrenCount property minus one (1).

You specify the child elements of a Track by setting the Thumb, DecreaseRepeatButton, and IncreaseRepeatButton properties. The child elements are indexed in the order that the properties are set.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: