IInkCustomStrokes::Add method (msinkaut.h)

Adds an InkStrokes collection to an IInkCustomStrokes collection.

Syntax

HRESULT Add(
  [in] BSTR        Name,
  [in] IInkStrokes *Strokes
);

Parameters

[in] Name

Specifies the name of the InkStrokes collection to add to the IInkCustomStrokes collection.

For more information about the BSTR data type, see Using the COM Library.

[in] Strokes

Specifies the InkStrokes collection to add to the IInkCustomStrokes collection.

Return value

This method can return one of these values.

Return code Description
S_OK
Success.
E_INVALIDARG
The item already exists in the collection or a parameter contained an invalid pointer.
E_OUTOFMEMORY
Cannot allocate memory to complete the operation.
E_INK_EXCEPTION
An exception occurred inside the method.
E_INK_INCOMPATIBLE_OBJECT
The collection of strokes is incompatible with the API.
E_INK_MISMATCHED_INK_OBJECT
The strokes parameter is associated with a different INK object.
E_FAIL
An unspecified error occurred.

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

See also

IInkCustomStrokes Interface

InkStrokes Collection