ITextStudio3DTextInputTarget
public interface ITextStudio3DTextInputTargetAccepts focus, editing, selection, and submission commands from a spatial keyboard or input adapter.
Methods
Section titled “Methods”
Focus()
Section titled “Focus()”void Focus()Acquires the global spatial text focus and exposes caret and selection state.
Blur()
Section titled “Blur()”void Blur()Releases spatial text focus and applies the target’s blur validation.
Insert(string)
Section titled “Insert(string)”void Insert(string value)Inserts text at the current selection after applying content and length rules.
Parameters
| Name | Type |
|---|---|
value |
System.String |
Backspace()
Section titled “Backspace()”void Backspace()Deletes the current selection or the preceding UTF-16 character.
DeleteForward()
Section titled “DeleteForward()”void DeleteForward()Deletes the current selection or the following UTF-16 character.
MoveCaret(int, bool)
Section titled “MoveCaret(int, bool)”void MoveCaret(int offset, bool extendSelection)Moves the caret by a signed character offset and optionally extends the selection.
Parameters
| Name | Type |
|---|---|
offset |
System.Int32 |
extendSelection |
System.Boolean |
SelectAll()
Section titled “SelectAll()”void SelectAll()Selects the complete editable value.
Submit()
Section titled “Submit()”void Submit()Raises submission for the current value and optionally releases focus.
Properties
Section titled “Properties”
IsFocused
Section titled “IsFocused”bool IsFocused { get; }Returns
System.Boolean
ReadOnly
Section titled “ReadOnly”bool ReadOnly { get; }Returns
System.Boolean