Skip to main content

TextEdit Properties

A single-line text editor.
Name Description
ActualAppearance Gets the common appearance settings that are applied to the current TextEdit.
AffixColor Gets or sets the prefix and suffix text color. This is a bindable property.
AffixFontAttributes Gets or sets whether the prefix and suffix text is bold or italic. This is a bindable property.
AffixFontFamily Gets or sets the font family name for the prefix and suffix text. This is a bindable property.
AffixFontSize Gets or sets the font size of the prefix and suffix text. This is a bindable property.
AffixIndent Gets or sets the distance between the affix and input text. This is a bindable property.
AllowAnimation Gets or sets whether the editor’s floating label moves with a smooth animation effect. This is a bindable property. Inherited from EditBase.
AnchorX Gets or sets the X component of the center point for any transform operation, relative to the bounds of the element. This is a bindable property. Inherited from VisualElement.
AnchorY Gets or sets the Y component of the center point for any transform operation, relative to the bounds of the element. This is a bindable property. Inherited from VisualElement.
AutofillContentType Gets or sets the hint that helps an autofill service determine how to populate the editor with user data. This is a bindable property.
AutomationId Gets or sets a value that allows the automation framework to find and interact with this element. Inherited from Element.
Background Gets or sets the Brush which will be used to fill the background of an element. This is a bindable property. Inherited from VisualElement.
BackgroundColor Gets or sets the Color which will fill the background of an element. This is a bindable property. Inherited from VisualElement.
Batched Gets a value that indicates there are batched changes done for this element. Inherited from VisualElement.
Behaviors Gets the list of Behavior objects associated to this element. This is a read-only bindable property. Inherited from VisualElement.
BindingContext

Gets or sets an object that contains the properties that will be targeted by the bound properties that belong to this BindableObject. This is a bindable property.

Inherited from BindableObject.
BorderColor Gets or sets the color of the editor box borders. This is a bindable property. Inherited from EditBase.
BorderThickness Gets or sets the thickness of the editor box borders. This is a bindable property. Inherited from EditBase.
BottomTextFontAttributes Gets or sets whether the editor’s help and error text is bold or italic. This is a bindable property. Inherited from EditBase.
BottomTextFontFamily Gets or sets the font family name for the editor’s help and error text. This is a bindable property. Inherited from EditBase.
BottomTextFontSize Gets or sets the font size of the editor’s help and error text. This is a bindable property. Inherited from EditBase.
BottomTextTopIndent Gets or sets the distance between the editor’s bottom border and help/error text. This is a bindable property. Inherited from EditBase.
Bounds Gets the bounds of the element in device-independent units. Inherited from VisualElement.
BoxHeight Gets or sets the edit box height. This is a bindable property. Inherited from EditBase.
BoxMargin Gets the margin of the edit box inside the editor. This is a bindable property. Inherited from EditBase.
BoxMinHeight Gets or sets the minimum edit box height. This is a bindable property. Inherited from EditBase.
BoxMinWidth Gets or sets the minimum edit box width. This is a bindable property. Inherited from EditBase.
BoxMode Gets or sets whether a stroke is displayed around the entire editor box or for the bottom edge only. This is a bindable property. Inherited from EditBase.
BoxPadding Gets or sets the amount of space between borders of the edit box and its content. This is a bindable property. Inherited from EditBase.
CharacterCasing Gets or sets whether to automatically convert characters to lowercase or uppercase when a user enters text in the editor. This is a bindable property. Inherited from EditBase.
CharacterCounterIndent Gets or sets the distance between the character counter and help/error text. This is a bindable property. Inherited from TextEditBase.
CharacterCounterVisibility Gets or sets whether the character counter is visible. This is a bindable property. Inherited from TextEditBase.
class Gets or sets the style classes for the element. Inherited from NavigableElement.
ClassId Gets or sets a value used to identify a collection of semantically similar elements. Inherited from Element.
ClearIcon Gets or sets the clear icon image. This is a bindable property. Inherited from EditBase.
ClearIconColor Gets or sets the color of the clear icon. This is a bindable property. Inherited from EditBase.
ClearIconCommand Gets or sets the command executed when a user taps the clear icon. This is a bindable property. Inherited from EditBase.
ClearIconCommandParameter Gets or sets the parameter passed to the ClearIconCommand. This is a bindable property. Inherited from EditBase.
ClearIconVisibility Gets or sets whether the clear icon is displayed. This is a bindable property. Inherited from EditBase.
Clip Specifies the clipping region for an element. This is a bindable property. Inherited from VisualElement.
CornerMode Gets or sets whether edit box corners are rounded or cut. This is a bindable property. Inherited from EditBase.
CornerRadius Gets or sets the corner radius of the edit box. This is a bindable property. Inherited from EditBase.
CursorColor Gets or sets the editor’s cursor color. This is a bindable property. Inherited from EditBase.
CursorPosition Gets or sets the cursor position. This is a bindable property. Inherited from TextEditBase.
DesiredSize Gets the size that this element computed during the measure pass of the layout process. Inherited from VisualElement.
DisabledAffixColor Gets or sets the text color for the prefix and suffix of the editor in a disabled state. This is a bindable property.
DisabledBackgroundColor Gets or sets the edit box background in disabled state. This is a bindable property. Inherited from EditBase.
DisabledBorderColor Gets or sets the color of the editor box borders in a disabled state. This is a bindable property. Inherited from EditBase.
DisabledBorderThickness Gets or sets the thickness of the editor box borders in a disabled state. This is a bindable property. Inherited from EditBase.
DisabledHelpTextColor Gets or sets the color of the help text shown below the disabled editor. This is a bindable property. Inherited from EditBase.
DisabledIconColor Gets or sets the color for icons of the editor in a disabled state. This is a bindable property. Inherited from EditBase.
DisabledLabelColor Gets or sets the text color for the label of the editor in a disabled state. This is a bindable property. Inherited from EditBase.
DisabledTextColor Gets or sets the color of text entered into the editor in a disabled state. This is a bindable property. Inherited from EditBase.
DisableLayout Gets a value that indicates that layout for this element is disabled. Inherited from VisualElement.
Dispatcher

Gets the dispatcher that was available when this bindable object was created, otherwise tries to find the nearest available dispatcher (probably the window’s/app’s).

Inherited from BindableObject.
DisplayFormat Gets or sets the format for numeric and date/time values displayed in the editor. This is a bindable property.
DisplayText Gets a string value that specifies the formatted text displayed in the editor. This is a bindable property. Inherited from EditBase.
EffectControlProvider For internal use by .NET MAUI. Inherited from Element.
Effects Gets or sets the styles and properties that will be applied to the element during runtime. Inherited from Element.
EndIcon Gets or sets the trailing icon image. This is a bindable property. Inherited from EditBase.
EndIconColor Gets or sets the color of a custom icon displayed at the editor’s far edge. This is a bindable property. Inherited from EditBase.
EndIconCommand Gets or sets the command executed when a user taps the trailing icon. This is a bindable property. Inherited from EditBase.
EndIconCommandParameter Gets or sets the parameter passed to the EndIconCommand. This is a bindable property. Inherited from EditBase.
ErrorColor Gets or sets the color of the edit box’s borders, label, error icon, and error message if there is an input error. This is a bindable property. Inherited from EditBase.
ErrorIcon Gets or sets the error icon image. This is a bindable property. Inherited from EditBase.
ErrorIconColor Gets or sets the color of an icon displayed when HasError is set to true. This is a bindable property. Inherited from EditBase.
ErrorIconCommand Gets or sets the command executed when a user taps the error icon. This is a bindable property. Inherited from EditBase.
ErrorIconCommandParameter Gets or sets the parameter passed to the ErrorIconCommand. This is a bindable property. Inherited from EditBase.
ErrorText Gets or sets the text message that appears below the editor in an error state. This is a bindable property. Inherited from EditBase.
FlowDirection Gets or sets the layout flow direction. This is a bindable property. Inherited from VisualElement.
FocusedBorderColor Gets or sets the color of the editor box borders in a focused state. This is a bindable property. Inherited from EditBase.
FocusedBorderThickness Gets or sets the thickness of the editor box borders in a focused state. This is a bindable property. Inherited from EditBase.
FocusedLabelColor Gets or sets the text color for the label of the editor in a focused state. This is a bindable property. Inherited from EditBase.
FontAutoScalingEnabled Gets or sets whether text is scaled according to the operating system’s text scale setting. This is a bindable property. Inherited from EditBase.
Frame Gets or sets the frame this element resides in on screen. Inherited from VisualElement.
GestureRecognizers The collection of gesture recognizers associated with this view. Inherited from View.
Handler Gets or sets the IViewHandler associated to this element. Inherited from VisualElement.
HasError Gets or sets whether the editor has an error. This is a bindable property. Inherited from EditBase.
Height Gets the current rendered height of this element. This is a read-only bindable property. Inherited from VisualElement.
HeightRequest Gets or sets the desired height override of this element. This is a bindable property. Inherited from VisualElement.
HelpText Gets or sets the input prompt text displayed below the edit box. This is a bindable property. Inherited from EditBase.
HelpTextColor Gets or sets the color of the help text shown below the edit box. This is a bindable property. Inherited from EditBase.
HorizontalOptions Gets or sets the LayoutOptions that define how the element gets laid out in a layout cycle. This is a bindable property. Inherited from View.
IconColor Gets or sets the color for editor icons. This is a bindable property. Inherited from EditBase.
IconIndent Gets or sets the distance between an icon and input text (affix). This is a bindable property. Inherited from EditBase.
IconSpacing Gets or sets the distance between icons. This is a bindable property. Inherited from EditBase.
IconVerticalAlignment Gets or sets the vertical alignment of icons. This is a bindable property. Inherited from EditBase.
Id Gets a value that can be used to uniquely identify an element throughout the run of your application. Inherited from Element.
InputTransparent Gets or sets a value indicating whether this element responds to hit testing during user interaction. This is a bindable property. Inherited from VisualElement.
IsEnabled Gets or sets a value indicating whether this element is enabled in the user interface. This is a bindable property. Inherited from VisualElement.
IsEndIconVisible Gets or sets whether the trailing icon is visible. This is a bindable property. Inherited from EditBase.
IsErrorIconVisible Gets or sets whether the error icon is visible. This is a bindable property. Inherited from EditBase.
IsFocused Gets a value indicating whether this element is focused currently. This is a bindable property. Inherited from VisualElement.
IsLabelFloating Gets or sets whether the label changes its position depending on the editor state, or it is pinned to the top of the editor box. This is a bindable property. Inherited from EditBase.
IsPlatformEnabled Gets or sets a value that indicates whether this elements’s platform equivalent element is enabled. Inherited from VisualElement.
IsReadOnly Gets or sets whether users can change a value in the editor. This is a bindable property. Inherited from EditBase.
IsSpellCheckEnabled Gets or sets whether the spell checker is enabled. This is a bindable property. Inherited from TextEditBase.
IsStartIconVisible Gets or sets whether the leading icon is visible. This is a bindable property. Inherited from EditBase.
IsVisible Gets or sets a value that determines whether this element will be visible on screen and take up space in layouts. This is a bindable property. Inherited from VisualElement.
Keyboard Gets or sets the type of keyboard used to input text. This is a bindable property. Inherited from TextEditBase.
LabelColor Gets or sets the text color for the label of the editor in an unfocused state. This is a bindable property. Inherited from EditBase.
LabelFontSize Gets or sets the font size of the editor’s label text. This is a bindable property. Inherited from EditBase.
LabelText Gets or sets the editor’s label text. This is a bindable property. Inherited from EditBase.
LogicalChildren For internal use by the Microsoft.Maui.Controls platform. Inherited from Element.
Margin Gets or set the margin for the view. Inherited from View.
Mask Gets or sets a mask expression. This is a bindable property.
MaskPlaceholderChar Gets or sets the character used as a placeholder in the masked editor. This is a bindable property.
MaxCharacterCount Gets or sets the maximum number of characters that users can input in the TextEditBase and its descendants. This is a bindable property. Inherited from TextEditBase.
MaxCharacterCountOverflowMode Gets or sets the behavior of the TextEditBase descendant when it contains the maximum number of characters. Inherited from TextEditBase.
MinimumHeightRequest Gets or sets the minimum height the element will request during layout. This is a bindable property. Inherited from VisualElement.
MinimumWidthRequest Gets or sets the minimum width the element will request during layout. This is a bindable property. Inherited from VisualElement.
Navigation Gets the object responsible for handling stack-based navigation. Inherited from NavigableElement.
NavigationProxy Gets the cast of Navigation to a NavigationProxy. Inherited from NavigableElement.
Opacity Gets or sets the opacity value applied to the element when it is rendered. The range of this value is 0 to 1; values outside this range will be set to the nearest valid value. This is a bindable property. Inherited from VisualElement.
Parent Gets or sets the parent Element of this element. Inherited from Element.
PlaceholderColor Gets or sets the placeholder color. This is a bindable property. Inherited from EditBase.
PlaceholderText Gets or sets the placeholder text. This is a bindable property. Inherited from EditBase.
Prefix Gets or sets the prefix text displayed before the input string within the edit box. This is a bindable property.
RealParent For internal use by .NET MAUI. Inherited from Element.
ReserveBottomTextLine Gets or sets whether the line with the error text below the edit box is reserved. This is a bindable property. Inherited from EditBase.
Resources Gets or sets the local resource dictionary. Inherited from VisualElement.
ReturnCommand Gets or sets the command that is executed when a user taps the ‘Return’ button. This is a bindable property. Inherited from EditBase.
ReturnCommandParameter Gets or sets the parameter passed to the ReturnCommand. This is a bindable property. Inherited from EditBase.
ReturnType Gets or sets the appearance of the ‘Return’ button on the operating system’s on-screen keyboard. This is a bindable property. Inherited from EditBase.
Rotation Gets or sets the rotation (in degrees) about the Z-axis (affine rotation) when the element is rendered. This is a bindable property. Inherited from VisualElement.
RotationX Gets or sets the rotation (in degrees) about the X-axis (perspective rotation) when the element is rendered. This is a bindable property. Inherited from VisualElement.
RotationY Gets or sets the rotation (in degrees) about the Y-axis (perspective rotation) when the element is rendered. This is a bindable property. Inherited from VisualElement.
Scale Gets or sets the scale factor applied to the element. This is a bindable property. Inherited from VisualElement.
ScaleX Gets or sets a scale value to apply to the X direction. This is a bindable property. Inherited from VisualElement.
ScaleY Gets or sets a scale value to apply to the Y direction. This is a bindable property. Inherited from VisualElement.
SelectionLength Gets the number of selected characters. This is a bindable property. Inherited from TextEditBase.
SelectionStart Gets a character index at which the selection starts. This is a bindable property. Inherited from TextEditBase.
StartIcon Gets or sets the leading icon image. This is a bindable property. Inherited from EditBase.
StartIconColor Gets or sets the color of a custom icon displayed at the editor’s near edge. This is a bindable property. Inherited from EditBase.
StartIconCommand Gets or sets the command executed when a user taps the leading icon. This is a bindable property. Inherited from EditBase.
StartIconCommandParameter Gets or sets the parameter passed to the StartIconCommand. This is a bindable property. Inherited from EditBase.
Style Gets or sets the unique Style for this element. Inherited from NavigableElement.
StyleClass Gets or sets the style classes for the element. Inherited from NavigableElement.
StyleId Gets or sets a user defined value to uniquely identify the element. Inherited from Element.
Suffix Gets or sets the suffix text displayed after the input string within the edit box. This is a bindable property.
Text Gets or sets the text entered in the editor. This is a bindable property. Inherited from TextEditBase.
TextChangedCommand Gets or sets the command executed when text in the edit box changes. This is a bindable property. Inherited from TextEditBase.
TextChangedCommandParameter Gets or sets the parameter passed to the TextChangedCommand. This is a bindable property. Inherited from TextEditBase.
TextColor Gets or sets the color of text entered into the editor. This is a bindable property. Inherited from EditBase.
TextFontAttributes Gets or sets the font style that the editor uses for input text, label and placeholder. This is a bindable property. Inherited from EditBase.
TextFontFamily Gets or sets the font family that the editor uses for input text, label and placeholder. This is a bindable property. Inherited from EditBase.
TextFontSize Gets or sets the font size of text entered into the editor. This is a bindable property. Inherited from EditBase.
TextHorizontalAlignment Gets or sets the horizontal alignment of text entered in the editor. This is a bindable property. Inherited from EditBase.
TextVerticalAlignment Gets or sets the vertical text alignment in the editor. This is a bindable property. Inherited from EditBase.
TranslationX Gets or sets the X translation delta of the element. This is a bindable property. Inherited from VisualElement.
TranslationY Gets or sets the Y translation delta of the element. This is a bindable property. Inherited from VisualElement.
Triggers Gets the list of TriggerBase objects associated to this element. This is a read-only bindable property. Inherited from VisualElement.
VerticalOptions Gets or sets the LayoutOptions that define how the element gets laid out in a layout cycle. This is a bindable property. Inherited from View.
Visual Gets or sets a IVisual implementation that overrides the visual appearance of an element. This is a bindable property. Inherited from VisualElement.
Width Gets the current width of this element. This is a read-only bindable property. Inherited from VisualElement.
WidthRequest Gets or sets the desired width override of this element. This is a bindable property. Inherited from VisualElement.
X Gets the current X position of this element. This is a read-only bindable property. Inherited from VisualElement.
Y Gets the current Y position of this element. This is a read-only bindable property. Inherited from VisualElement.
See Also