Export (0) Print
Expand All

ItemCollection.GetItemAt Method

Returns the item at the specified zero-based index in this view.

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

public override Object GetItemAt (
	int index
)
public Object GetItemAt (
	int index
)
public override function GetItemAt (
	index : int
) : Object
You cannot use methods in XAML.

Parameters

index

The zero-based index at which the item is located.

Return Value

The item at the specified zero-based index in this view.

Exception typeCondition

ArgumentOutOfRangeException

index is out of range.

InvalidOperationException

The collection is uninitialized or the binding on ItemsSource supplied a a null reference (Nothing in Visual Basic) value.

This method evaluates the index with any sorting, filtering, or grouping criteria that are set on the view using the SortDescriptions or Filter 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