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 ();
}
public function get Id () : int
Property Value
Type: System.Int32
The Stroke object's identifier.
Remarks
Note
A Stroke object's identifier is constant over time, meaning that it never changes.
Examples
In this example, the identifier of the first selected Stroke object of an InkOverlay object is obtained.
If mInkOverlay.Selection.Count > 0 Then
Dim firstSelectedID As Integer = mInkOverlay.Selection(0).Id
End If
if (mInkOverlay.Selection.Count > 0)
{
int firstSelectedID = mInkOverlay.Selection[0].Id;
}
Platforms
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.
Version Information
.NET Framework
Supported in: 3.0