Class TextInputMethodClient
public abstract class TextInputMethodClient
- Inheritance
-
TextInputMethodClient
- Inherited Members
Constructors
TextInputMethodClient()
protected TextInputMethodClient()
Properties
CursorRectangle
Gets the cursor rectangle relative to the TextViewVisual
public abstract Rect CursorRectangle { get; }
Property Value
Selection
Gets or sets the curent selection range within current surrounding text.
public abstract TextSelection Selection { get; set; }
Property Value
SupportsPreedit
Indicates if TextViewVisual is capable of displaying non-committed input on the cursor position
public abstract bool SupportsPreedit { get; }
Property Value
SupportsSurroundingText
Indicates if text input client is capable of providing the text around the cursor
public abstract bool SupportsSurroundingText { get; }
Property Value
SurroundingText
Returns the text around the cursor, usually the current paragraph
public abstract string SurroundingText { get; }
Property Value
TextViewVisual
The visual that's showing the text
public abstract Visual TextViewVisual { get; }
Property Value
Methods
ExecuteContextMenuAction(ContextMenuAction)
Execute specific context menu actions
public virtual void ExecuteContextMenuAction(ContextMenuAction action)
Parameters
action
ContextMenuActionThe ContextMenuAction to perform
RaiseCursorRectangleChanged()
protected virtual void RaiseCursorRectangleChanged()
RaiseSelectionChanged()
protected virtual void RaiseSelectionChanged()
RaiseSurroundingTextChanged()
protected virtual void RaiseSurroundingTextChanged()
RaiseTextViewVisualChanged()
protected virtual void RaiseTextViewVisualChanged()
RequestReset()
protected virtual void RequestReset()
SetPreeditText(string?)
Sets the non-committed input string
public virtual void SetPreeditText(string? preeditText)
Parameters
preeditText
string
SetPreeditText(string?, int?)
Sets the non-committed input string and cursor offset in that string
public virtual void SetPreeditText(string? preeditText, int? cursorPos)
Parameters
ShowInputPanel()
public virtual void ShowInputPanel()
Events
CursorRectangleChanged
Fires when the cursor rectangle has changed
public event EventHandler? CursorRectangleChanged
Event Type
ResetRequested
Fires when client wants to reset IME state
public event EventHandler? ResetRequested
Event Type
SelectionChanged
Fires when the selection has changed
public event EventHandler? SelectionChanged
Event Type
SurroundingTextChanged
Fires when the surrounding text has changed
public event EventHandler? SurroundingTextChanged
Event Type
TextViewVisualChanged
Fires when the text view visual has changed
public event EventHandler? TextViewVisualChanged