Bagikan melalui


Ink.Strokes Property

Ink.Strokes Property

Gets a copy of the Strokes collection contained in the Ink object.

Definition

Visual Basic .NET Public ReadOnly Property Strokes As Strokes
C# public Strokes Strokes { get; }
Managed C++ public: __property Strokes* get_Strokes();

Property Value

Microsoft.Ink.Strokes. A copy of the Strokes collection contained in the Ink object.

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

Exceptions

ObjectDisposedException Leave Site: The Ink object is disposed.

Remarks

Note: The Strokes property does not return the actual collection that the Ink object works with, but instead returns a copy. For example, this means that adding or removing strokes to this collection does not affect the Ink's strokes; to add or remove strokes, use Ink methods such as AddStrokesAtRectangle, DeleteStroke, and DeleteStrokes.

Examples

[C#]

This C# example gets the number of strokes that have been collected by an InkCollector object, theInkCollector.

int numberOfStrokes = theInkCollector.Ink.Strokes.Count;
                

[VB.NET]

This Microsoft® Visual Basic® .NET example gets the number of strokes that have been collected by an InkCollector object, theInkCollector.

Dim numberOfStrokes As Integer = theInkCollector.Ink.Strokes.Count
            

See Also