Compartir a través de


Stroke.Id Property

Stroke.Id Property

Gets the identifier of the Stroke object.

Definition

Visual Basic .NET Public ReadOnly Property Id As Integer
C# public int Id { get; }
Managed C++ public: __property int* get_Id();

Property Value

System.Int32. The Stroke object's identifier.

This property is read-only. This property has no default value.

Remarks

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

Examples

[C#]

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

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

[Visual Basic .NET]

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

See Also