Edit

Share via


IContextNode::SetStrokes method

Associates the specified strokes with this IContextNode.

Syntax

HRESULT SetStrokes(
  [in] ULONG ulStrokeIdsCount,
  [in] LONG  *plStrokeIds
);

Parameters

ulStrokeIdsCount [in]

The number of stroke identifiers in plStrokeIds.

plStrokeIds [in]

The identifiers of the strokes to associate with this IContextNode.

Return value

For a description of the return values, see Classes and Interfaces - Ink Analysis.

Remarks

This method does not update the ink analyzer's dirty region (see IInkAnalyzer::GetDirtyRegion Method).

Use this method when your application maintains its own data structure, which is synchronized with that of the IInkAnalyzer. Use this method to assign stroke data to a specific context node. For more information about synchronizing your application data with the IInkAnalyzer, see Data Proxy with Ink Analysis.

If any of the specified strokes are already associated with the IInkAnalyzer, this method returns E_INVALIDARG.

Requirements

Requirement Value
Minimum supported client
Windows XP Tablet PC Edition [desktop apps only]
Minimum supported server
None supported
Header
IACom.h (also requires IACom_i.c)
DLL
IACom.dll

See also

IContextNode

IInkAnalyzer::AddStroke Method

IInkAnalyzer::AddStrokeForLanguage Method

IInkAnalyzer::AddStrokes Method

IInkAnalyzer::AddStrokesForLanguage Method

IInkAnalyzer::AddStrokesToCustomRecognizer Method

IInkAnalyzer::AddStrokeToCustomRecognizer Method

IInkAnalyzer::RemoveStroke Method

IInkAnalyzer::RemoveStrokes Method

IContextNode::GetStrokeId

IContextNode::GetStrokeIds

Ink Analysis Reference