Примечание
Для доступа к этой странице требуется авторизация. Вы можете попробовать войти или изменить каталоги.
Для доступа к этой странице требуется авторизация. Вы можете попробовать изменить каталоги.
Обновлен: Ноябрь 2007
Gets the Tablet object at the specified index within the Tablets collection.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public ReadOnly Property Item ( _
index As Integer _
) As Tablet
'Применение
Dim instance As Tablets
Dim index As Integer
Dim value As Tablet
value = instance.Item(index)
public Tablet Item[
int index
] { get; }
public:
property Tablet^ Item[int index] {
Tablet^ get (int index);
}
/** @property */
public Tablet get_Item(
int index
)
JScript не поддерживает индексированные свойства.
Параметры
- index
Тип: System.Int32
The zero-based index of the Tablet object to get.
Значение свойства
Тип: Microsoft.Ink.Tablet
The Tablet object at the specified index within the Tablets collection.
Заметки
An ArgumentOutOfRangeException is thrown if the index does not match an existing member of the Tablets collection.
![]() |
---|
This property is not available when using C#. Instead, you must use the collection's indexer as shown in the following example. |
Примеры
This example gets the first Tablet object from the Tablets collection, allTablets.
' get the first tablet
Dim FirstTablet1 As Tablet = New Tablets().Item(0)
' or another way to do it
Dim allTablets As Tablets = New Tablets()
Dim FirstTablet2 As Tablet = allTablets.Item(0)
' yet another way
Dim FirstTablet3 As Tablet = allTablets(0)
' the following does not compile,
' indexer is not available directly from the .ctor in VB
' Dim FirstTablet4 As Tablet = New Tablets()(0)
// get the first tablet
Tablet FirstTablet1 = new Tablets()[0];
// or another way to do it
Tablets allTablets = new Tablets();
Tablet FirstTablet2 = allTablets[0];
// the following does not compile, Item is not available in C#
// Tablet FirstTablet3 = allTablets.Items[0];
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0