次の方法で共有


AddStrokes Method (Automation Only)

AddStrokes Method (Automation Only)

Adds a Strokes collection to an existing Strokes collection.

Declaration

[C++]

HRESULT AddStrokes (
[in] IInkStrokes* InkStrokes
);

[Microsoft® Visual Basic® 6.0]

Public Sub AddStrokes( _
InkStrokes As InkStrokes _
)

Parameters

InkStrokes

[in] Specifies the collection of strokes to add to the collection of strokes.

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 compatible InkDisp object.
E_INK_MISMATCHED_INK_OBJECT The InkDisp object of the InkStrokes collection that is being added must match the InkDisp object of the InkStrokes collection to which it is being added.
E_UNEXPECTED Unexpected parameter or property type.

Remarks

Note: This collection must already exist within the InkDisp object and cannot belong to another InkDisp object. Also, this does not copy or otherwise alter the InkDisp object, but merely adds this collection of strokes to the collection.

Examples

[Visual Basic 6.0]

This Visual Basic 6.0 example adds a new set of strokes, theNewStrokes, to a InkStrokes collection object, theStrokes.

theStrokes.AddStrokes theNewStrokes

Applies To