Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/8/2010

Gets the collection of IInkStrokesthat are contained in an IInkDispobject or used to create an object.

Syntax

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

Return Value

Strokes

The collection of IInkStrokesthat are contained in an object or used to create an object.

This property is read–only.

Return Value

S_OK

Success.

E_POINTER

A parameter contained an invalid pointer.

E_INK_INCOMPATIBLE_OBJECT

The Strokesparameter does not point to a compatible IInkDispobject.

E_INK_EXCEPTION

An exception occurred inside the method.

E_OUTOFMEMORY

Unable to allocate memory to complete the operation.

E_UNEXPECTED

Unexpected parameter or property type.

Remarks

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

Note:
The Strokesproperty for the IInkDispobject 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 IInkDispobject's strokes. To add or remove strokes, use IInkDispmethods such as IInkDisp::AddStrokesAtRectangle, IInkDisp::DeleteStroke, and IInkDisp::DeleteStrokes. However, each stroke in the collection is a reference to the original IInkStrokeDispobject.

Requirements

Header msinkaut.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile 6 Classic and later, Windows Mobile 6 Professional and later

See Also