| File: Core\ITextInput.cs | Web Access |
| Project: src\src\Core\src\Core.csproj (Microsoft.Maui) |
namespace Microsoft.Maui { /// <summary> /// Represents a View which can take keyboard input. /// </summary> public interface ITextInput : IText, IPlaceholder { /// <summary> /// Gets or sets the text. /// </summary> new string Text { get; set; } /// <summary> /// Gets a value that controls whether text prediction and automatic text correction is on or off. /// </summary> bool IsTextPredictionEnabled { get; } /// <summary> /// Gets a value that controls whether spellchecking is on or off. /// </summary> bool IsSpellCheckEnabled { get; } /// <summary> /// Gets a value indicating whether or not the view is read-only. /// </summary> bool IsReadOnly { get; } /// <summary> /// Gets the keyboard input type. /// </summary> Keyboard Keyboard { get; } /// <summary> /// Gets the maximum allowed length of input. /// </summary> int MaxLength { get; } /// <summary> /// Gets or sets the position of the cursor. /// </summary> int CursorPosition { get; set; } /// <summary> /// Gets the length of the selection. /// </summary> int SelectionLength { get; set; } } }