IInkDisp::ExtractStrokes method (msinkaut.h)
Specifies the strokes to extract from an InkDisp Class and cut or copy into a new InkDisp Class, by using the known collection of strokes to determine which strokes to extract.
Syntax
HRESULT ExtractStrokes(
[in, optional] IInkStrokes *Strokes,
[in, optional] InkExtractFlags ExtractFlags,
[out, retval] IInkDisp **ExtractedInk
);
Parameters
[in, optional] Strokes
Optional. Specifies the collection of strokes to extract. The default value is 0, which specifies that all strokes are extracted.
[in, optional] ExtractFlags
Optional. Specifies the InkExtractFlags Enumeration type, which specifies whether the ink is cut or copied into the new Ink object. The default value is IEF_DEFAULT, which cuts the strokes.
[out, retval] ExtractedInk
When this method returns, contains a pointer to a new InkDisp Class object that contains the extracted collection of cut or copied strokes.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success |
|
A parameter contained an invalid pointer. |
|
The InkDisp Class object of the InkStrokes Collection collection must match the known InkDisp Class. |
|
An exception occurred inside the method. |
|
Not all strokes were extracted. |
|
Cannot allocate memory that is used to perform the operation. |
|
Invalid extraction flags. |
|
The InkDisp Class object class is not registered. |
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 |