Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
Stroke Class
Stroke Properties
 Id Property
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
Stroke..::.Id Property

Gets the identifier of the Stroke object.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)
Visual Basic (Declaration)
Public ReadOnly Property Id As Integer
Visual Basic (Usage)
Dim instance As Stroke
Dim value As Integer

value = instance.Id
C#
public int Id { get; }
Visual C++
public:
property int Id {
    int get ();
}
JScript
public function get Id () : int

Property Value

Type: System..::.Int32
The Stroke object's identifier.
NoteNote:

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

In this example, the identifier of the first selected Stroke object of an InkOverlay object is obtained.

Visual Basic
If mInkOverlay.Selection.Count > 0 Then
    Dim firstSelectedID As Integer = mInkOverlay.Selection(0).Id
End If
C#
if (mInkOverlay.Selection.Count > 0)
{
    int firstSelectedID = mInkOverlay.Selection[0].Id;
}

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker