Skip to main content

DxMemo.Text Property

Specifies the text displayed in the Memo.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public string Text { get; set; }

Property Value

Type Description
String

A string value that represents the text in a Memo.

Remarks

Use the Text property to specify the Memo’s text.

<DxMemo Text="Some text"/>

Alternatively, you can use the @bind attribute to bind the Text property to a variable that stores the text.

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

@code {
    string TextValue { get; set; } =
        "Prepare 2020 Marketing Plan: We need to double revenues in 2020 "+
        "and our marketing strategy is going to be key here. " +
        "R&D is improving existing products and creating new products "+
        "so we can deliver great AV equipment to our customers. " +
        "Robert, please make certain to create a PowerPoint presentation "+
        "for the members of the executive team.";
}

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

Each time the editor text is changed, the TextChanged event fires.

Run Demo: Memo

See Also