Click or drag to resize
ISingleCharWidgetApiCommit Method
Commit the current writing session, optionally clear ink from the screen. This method commits the current writing session if not empty and starts a new one. If the current writing session is empty, the widget does not start a new one.

The meaning of a writing session depends on the current handwriting recognition mode.

  • In superimposed mode, a writing session represents any kind of text (from a single character up to several sentences) with each character written on top of the other. A commit operation freezes all strokes and text interpretation, keeps them and starts a new writing session.
  • In isolated mode, a writing session represents a single character. A commit operation indicates the end of the current character and starts the next one.
  • In cursive mode, a writing session is a single screen page, which represents from a single character up to several words and sentences, laid out on a single or multiple lines. A commit operation indicates the end of the current screen page and starts the next one.

Strokes currently displayed on the screen are either kept or removed from the screen based on the value of the

clearInk
parameter.

Namespace: MyScript.Atk.Text.Scw
Assembly: MyScript.Atk.Text.Scw (in MyScript.Atk.Text.Scw.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
void Commit(
	bool clearInk
)

Parameters

clearInk
Type: SystemBoolean
Clear ink from the screen if true, keep ink if false.
Remarks
This method may be ignored if the widget is not configured, as the recognition mode could not be automatically detected and this information is required. If you plan on using this API before widget is configured, please consider setting the recognition mode explicitly using the provided API method.
See Also