Freigeben über


Stroke.Id Property

Gets the identifier of the Stroke object.

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

Syntax

'Declaration
Public ReadOnly Property Id As Integer
'Usage
Dim instance As Stroke
Dim value As Integer

value = instance.Id
public int Id { get; }
public:
property int Id {
    int get ();
}
/** @property */
public int get_Id ()
public function get Id () : int
Not applicable.

Property Value

The Stroke object's identifier.

Remarks

Note

A Stroke object's identifier is constant over time, meaning that it never changes.

Example

This C# example returns the identifier of the first Stroke object contained in the InkCollector object, theInkCollector.

int theStrokeID = theInkCollector.Ink.Strokes[0].Id;

This Microsoft® Visual Basic® .NET example returns the identifier of the first Stroke object contained in the InkCollector object, theInkCollector.

Dim theStrokeID As Integer = theInkCollector.Ink.Strokes(0).Id

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

Stroke Class
Stroke Members
Microsoft.Ink Namespace