IInkDisp::CreateStrokes method (msinkaut.h)
Creates a new InkStrokes collection from existing IInkStrokeDisp objects.
Syntax
HRESULT CreateStrokes(
[in, optional] VARIANT StrokeIds,
[out, retval] IInkStrokes **Strokes
);
Parameters
[in, optional] StrokeIds
Optional. Specifies an array of stroke IDs that exist in the InkDisp object. The strokes with these IDs are added to a new InkStrokes collection. The default value is NULL.
For more information about the VARIANT structure, see Using the COM Library.
[out, retval] Strokes
When this method returns, contains a pointer to a new InkStrokes collection.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
A parameter contained an invalid pointer. |
|
Invalid VARIANT type (only VT_ARRAY | VT_I4 supported). |
|
An exception occurred inside the method. |
|
Cannot allocate memory to create the new Strokes collection. |
|
Stroke IDs that do not exist were passed to the method. |
Remarks
If the ids parameter is NULL or an empty array, then an empty InkStrokes collection is created.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP Tablet PC Edition [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | msinkaut.h |
Library | InkObj.dll |