Condividi tramite


Ink.CreateStrokes Method

Ink.CreateStrokes Method

Creates an empty Strokes collection.

Definition

Visual Basic .NET Public Function CreateStrokes() As Strokes
C# public Strokes CreateStrokes();
Managed C++ public: Strokes* CreateStrokes();

Return Value

Microsoft.Ink.Strokes. Returns a new Strokes collection.

Exceptions

COMException Leave Site: from Ink.CreateStrokes() or Strokes.Add().
ObjectDisposedException Leave Site: The Ink object is disposed.

Examples

[C#]

This C# example creates an empty Strokes collection to which Stroke objects can be added.

// Create an object to hold strokes
Strokes theStrokes = theInk.CreateStrokes();

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example creates an empty Strokes collection to which Stroke objects can be added.

' Create an object to hold strokes
Dim theStrokes As Strokes
theStrokes = theInk.CreateStrokes()

See Also