次の方法で共有


SelectionContainer.Item(Object) Method

Definition

Returns an object in the SelectionContainer collection.

public:
 System::Object ^ Item(System::Object ^ index);
public:
 Platform::Object ^ Item(Platform::Object ^ index);
winrt::Windows::Foundation::IInspectable Item(winrt::Windows::Foundation::IInspectable const & index);
[System.Runtime.InteropServices.DispId(0)]
public object Item (object index);
[<System.Runtime.InteropServices.DispId(0)>]
abstract member Item : obj -> obj
Public Function Item (index As Object) As Object

Parameters

index
Object

Required. The index of the object to return.

Returns

An object.

Attributes

Remarks

The value passed to Index is either an integer that is an index to an object in its SelectionContainer collection or an object in the SelectionContainer collection.

The Item method throws a ArgumentException exception if the collection cannot find the object that corresponds to the index value.

Applies to