Export (0) Print
Expand All

BulletDecorator.GetVisualChild Method

Gets the child element that is 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 specified index for the child element.

Return Value

The Visual child element that is at the specified index.

Exception typeCondition

ArgumentOutOfRangeException

The index is not 0 or 1.

A BulletDecorator can have at most two visual child elements. Therefore, if the return value is not 0 or 1, an ArgumentOutOfRangeException occurs.

If a BulletDecorator has two child elements, one of the child elements must be specified by setting the Bullet property.

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

Community Additions

ADD
Show:
© 2014 Microsoft