IInkDisp::DeleteStrokes method (msinkaut.h)
Deletes an InkStrokes collection from the Strokes collection of the InkDisp object.
Syntax
HRESULT DeleteStrokes(
[in, optional] IInkStrokes *Strokes
);
Parameters
[in, optional] Strokes
Optional. Specifies the collection of strokes to delete from the InkDisp object. The default value is NULL.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
A parameter contained an invalid pointer. |
|
Cannot allocate memory that is used to perform the operation. |
|
An unspecified error occurred. |
|
The InkDisp object of the strokes must match the known InkDisp object. |
|
An exception occurred inside the method. |
|
Unexpected parameter or property type. |
Remarks
This method deletes all of the strokes in the InkDisp object if no InkStrokes collection is passed in. To delete only one stroke at a time, call the DeleteStroke method.
The InkDisp object renumbers the indices of the remaining strokes in the InkDisp object if the strokes that were deleted do not fall at the end of the InkDisp object's collection of strokes.
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 |