Skip to main content

DxTextEditorBase.Text Property

Specifies the text displayed within a text editor.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v22.1.dll


public string Text { get; set; }

Property Value

Type Description

A string value representing the text within the editor.


Use the Text property to specify the editor’s value in markup or in code:

<DxTextBox Text="Some text"></DxTextBox>

Alternatively, you can bind the Text property to a variable that stores the editor text:

<DxTextBox @bind-Text="@TextValue"></DxTextBox>

@code {
    string TextValue { get; set; } = "Some text";

If you bind the editor text to a non-string value (CustomTypeValue), the editor displays the CustomTypeValue.ToString() value.

Each time the editor text has been changed, the TextChanged event fires.

Run Demo: Text Box

See Also