IInkStrokeDisp::Split method (msinkaut.h)
Splits the stroke at the specified location on the stroke.
Syntax
HRESULT Split(
[in] float SplitAt,
[out, retval] IInkStrokeDisp **NewStroke
);
Parameters
[in] SplitAt
The floating point index value that represents where to split the stroke.
[out, retval] NewStroke
When this method returns, contains a pointer to the new IInkStrokeDisp object that is created from the split operation.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
A parameter contained an invalid pointer. |
|
Cannot allocate Stroke handler helper object. |
|
The parameter is invalid. |
|
Unexpected parameter or property type. |
|
An exception occurred inside the method. |
Remarks
This method inserts the new stroke immediately after the original stroke in the stroke set and renumbers the remaining stroke indices.
When an IInkStrokeDisp is split, the beginning portion of the stroke remains the ID of the original IInkStrokeDisp. The end portion of the IInkStrokeDisp becomes a new IInkStrokeDisp with an ID that is one greater than the highest IInkStrokeDisp ID. If the original IInkStrokeDisp was in an InkStrokes collection (other than the Ink.Strokes), only the beginning portion remains in that collection.
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 |