Skip to content
SiteEmail

cohtml.Net.ITextInputHandler

Notifies of changes to input elements.

Inherits from SystemIDisposable

Inherited by cohtml.TextInputHandler

Name
virtual voidDispose()
ITextInputHandler()
virtual voidOnSelectionChanged(IInputProxy proxy, Selection selection)
Notifies that the selection in an input element has changed, including change of the caret position.
virtual voidOnTextChanged(IInputProxy proxy, string addedChars, uint addedCount, string removedChars, uint removedCount, uint index)
Notifies that the text in an input element has changed.
virtual voidOnFocus(IInputProxy proxy)
Called when the element is focused.
virtual voidOnBlur(IInputProxy proxy)
Called when the element loses focus proxy the affected element.
delegate voidSwigDelegateITextInputHandler_0(global.System.IntPtr proxy, global.System.IntPtr selection, global.System.IntPtr swigId)
delegate voidSwigDelegateITextInputHandler_1(global.System.IntPtr proxy, string addedChars, uint addedCount, string removedChars, uint removedCount, uint index, global.System.IntPtr swigId)
delegate voidSwigDelegateITextInputHandler_2(global.System.IntPtr proxy, global.System.IntPtr swigId)
delegate voidSwigDelegateITextInputHandler_3(global.System.IntPtr proxy, global.System.IntPtr swigId)
Name
boolswigCMemOwn
virtual void Dispose()
ITextInputHandler()
virtual void OnSelectionChanged(
IInputProxy proxy,
Selection selection
)

Notifies that the selection in an input element has changed, including change of the caret position.

Parameters:

  • proxy the affected element
  • selection the new selection

Reimplemented by: cohtml.TextInputHandler.OnSelectionChanged

virtual void OnTextChanged(
IInputProxy proxy,
string addedChars,
uint addedCount,
string removedChars,
uint removedCount,
uint index
)

Notifies that the text in an input element has changed.

Parameters:

  • proxy the affected element
  • addedChars the newly added characters, can be nullptr
  • addedCount the count of newly added characters
  • removedChars the newly removed/replaced characters, can be nullptr
  • removedCount count the count of the newly removed/replaced characters
  • index the index at which the characters are added and/or removed
virtual void OnFocus(
IInputProxy proxy
)

Called when the element is focused.

Parameters:

  • proxy the affected element

Reimplemented by: cohtml.TextInputHandler.OnFocus

virtual void OnBlur(
IInputProxy proxy
)

Called when the element loses focus proxy the affected element.

Reimplemented by: cohtml.TextInputHandler.OnBlur

delegate void SwigDelegateITextInputHandler_0(
global.System.IntPtr proxy,
global.System.IntPtr selection,
global.System.IntPtr swigId
)
delegate void SwigDelegateITextInputHandler_1(
global.System.IntPtr proxy,
string addedChars,
uint addedCount,
string removedChars,
uint removedCount,
uint index,
global.System.IntPtr swigId
)
delegate void SwigDelegateITextInputHandler_2(
global.System.IntPtr proxy,
global.System.IntPtr swigId
)
delegate void SwigDelegateITextInputHandler_3(
global.System.IntPtr proxy,
global.System.IntPtr swigId
)
bool swigCMemOwn;