RemoveStrokes Method (Automation Only)
RemoveStrokes Method (Automation Only) |
Removes strokes from the collection.
Declaration
[C++]
HRESULT RemoveStrokes (
[in] IInkStrokes* strokes
);
[Microsoft® Visual Basic® 6.0]
Public Sub RemoveStrokes( _
strokes As InkStrokes _
)
Parameters
strokes
[in] The strokes to remove from the collection.
Return Value
HRESULT value | Description |
---|---|
S_OK | Success. |
E_POINTER | A parameter contained an invalid pointer. |
E_OUTOFMEMORY | Cannot allocate Stroke handler helper object. |
E_INK_EXCEPTION | An exception occurred inside the method. |
E_INK_INCOMPATIBLE_OBJECT | IInkStrokes* does not point to a valid InkDisp object. |
E_INK_MISMATCHED_INK_OBJECT | The InkDisp object of the InkStrokes collection and the specified InkStrokes don't match. |
E_UNEXPECTED | Unexpected parameter or property type. |
Example
[Visual Basic 6.0]
This Visual Basic 6.0 example removes a collection of strokes theRemovedStrokes from an InkStrokes collection, theStrokes.
theStrokes.RemoveStrokes theRemovedStrokes