Поделиться через


Strokes.Item - свойство

Обновлен: Ноябрь 2007

Gets the Stroke object at the specified index within the Strokes collection.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
Public ReadOnly Property Item ( _
    index As Integer _
) As Stroke
'Применение
Dim instance As Strokes
Dim index As Integer
Dim value As Stroke

value = instance.Item(index)
public Stroke Item[
    int index
] { get; }
public:
property Stroke^ Item[int index] {
    Stroke^ get (int index);
}
/** @property */
public Stroke get_Item(
    int index
)
JScript не поддерживает индексированные свойства.

Параметры

Значение свойства

Тип: Microsoft.Ink.Stroke
The Stroke object at the specified index within the Strokes collection.

Заметки

An ArgumentOutOfRangeException is thrown if the index does not match an existing member of the Strokes collection.

ms572055.alert_note(ru-ru,VS.90).gifПримечание.

In C#, use the collection's indexer as shown in the following example, instead of using the collection's Item property.

Примеры

This C# example gets the first Stroke object from the Strokes collection, theStrokes.

Microsoft.Ink.Stroke theStroke = theStrokes[0];

This Microsoft Visual Basic.NET example gets the first Stroke object from the Strokes collection, theStrokes.

Dim theStroke As Microsoft.Ink.Stroke = theStrokes.Item(0)

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

Strokes Класс

Strokes - члены

Microsoft.Ink - пространство имен

Stroke