Strokes Property

Strokes Property

Gets the collection of strokes that are contained in an object or used to create an object.

Declaration

[C++]

[propget] HRESULT get_Strokes ([out, retval] IInkStrokes** Strokes);

[Microsoft® Visual Basic® 6.0]

Public Property Get Strokes() As InkStrokes

Property Value

InkStrokes The collection of strokes that are contained in an object or used to create an object.

This property is read-only.

Return Value

HRESULT value Description
S_OK Success.
E_INK_EXCEPTION An exception occurred inside the method.
E_INK_INCOMPATIBLE_OBJECT The IInkStrokes parameter does not point to a compatible InkDisp object.
E_OUTOFMEMORY Unable to allocate memory to complete the operation.
E_POINTER A parameter contains an invalid pointer.
E_UNEXPECTED Unexpected parameter or property type.

Remarks

The collection of strokes may be the copies of the strokes contained in an Ink object or the strokes that were used to create the object or collection.

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

Example

[Visual Basic 6.0]

This Visual Basic 6.0 example copies the strokes from the Ink property of the InkCollector object theInkCollector to the InkStrokes collection theStrokes.

Dim theStrokes As InkStrokes
Set theStrokes = theInkCollector.Ink.Strokes

Applies To