Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxMemo.Rows Property

Specifies the number of text lines in the Memo component.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(2)]
[Parameter]
public int Rows { get; set; }

#Property Value

Type Default Description
Int32 2

The number of text lines.

#Remarks

Use the Rows property to specify the number of text lines in the Memo component. If the text does not fit the specified number of lines, the component displays a scrollbar.

Note

The Columns property specifies the number of characters the editor should display in one line.

Razor
<DxMemo @bind-Text="@TextValue"
        Rows="8"
        Columns="50">
</DxMemo>

@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.";
}

Memo - Custom Size

Run Demo: Memo - Custom Size

See Also