Freigeben über


Strokes.Item Property

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

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    index As Integer _
) As Stroke
'Usage
Dim instance As Strokes
Dim index As Integer
Dim value As Stroke

value = instance(index)
public Stroke this [
    int index
] { get; }
public:
property Stroke^ default [int] {
    Stroke^ get (int index);
}
/** @property */
public Stroke get_Item (int index)
Not applicable.

Parameters

  • index
    The zero-based index of the Stroke object to get.

Property Value

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

Remarks

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

Note

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

Example

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)

Platforms

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.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Strokes Class
Strokes Members
Microsoft.Ink Namespace
Stroke