- Namespace
- Avalonia
.Input .TextInput
graph BT
Type["ITextInputMethodClient"]
class Type type-node
Syntax
public interface ITextInputMethodClient
Events
Name | Type | Summary |
---|---|---|
Cursor |
EventHandler |
Should be fired when cursor rectangle is changed inside the TextViewVisual
|
Surrounding |
EventHandler |
Should be fired when surrounding text changed
|
Text |
EventHandler |
Should be fired when text-hosting visual is changed
|
Properties
Name | Value | Summary |
---|---|---|
CursorRectangle | Rect |
The cursor rectangle relative to the TextViewVisual
|
SupportsPreedit | bool |
Indicates if TextViewVisual is capable of displaying non-commited input on the cursor position
|
Supports |
bool |
Indicates if text input client is capable of providing the text around the cursor
|
SurroundingText | Text |
Returns the text around the cursor, usually the current paragraph, the cursor position inside that text and selection start position
|
TextAfterCursor | string |
Returns the text before the cursor. Must return a non-empty string if cursor is not at the end of the text entry
|
TextBeforeCursor | string |
Returns the text before the cursor. Must return a non-empty string if cursor is not at the beginning of the text entry
|
TextViewVisual | IVisual |
The visual that's showing the text
|
Methods
Name | Value | Summary |
---|---|---|
SetPreeditText |
void |
Sets the non-commited input string
|