TabletDeviceCollection.Item Property (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the TabletDevice object at the specified index within the collection.

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

public TabletDevice this[
	int index
] { get; }

Parameters

index
Type: System.Int32

The zero-based index of the TabletDevice that is retrieved from the collection.

Property Value

Type: System.Windows.Input.TabletDevice

The TabletDevice object at the specified index within the collection.

Exception Condition
IndexOutOfRangeException

If index is less than 0 or index is greater than or equal to the number of TabletDeviceCollection objects in the collection.

The following example demonstrates the Item property.

string[] myTabletDeviceNamesArray = new string[numTabletDevices];

for (int i = 0; i < numTabletDevices; i++)
{
    myTabletDeviceNamesArray[i] = myTabletDeviceCollection[i].Name;
}

.NET Framework
Available since 3.0
Return to top
Show: