Back to Devexpress

DxMemo.MaxRows Property

blazor-devexpress-dot-blazor-dot-dxmemo-e7c2f9c0.md

latest2.2 KB
Original Source

DxMemo.MaxRows Property

Specifies the maximum number of visible text lines.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public int? MaxRows { get; set; }

Property Value

TypeDescription
Nullable<Int32>

The maximum number of visible text lines.

|

Remarks

Use the MaxRows property to specify the number of visible text lines in the Memo component. The property applies to the Memo only when the ResizeMode property is set to Auto, Vertical, or VerticalAndHorizontal. When content exceeds the specified number of lines, the Memo displays a vertical scrollbar.

razor
<DxMemo @bind-Text="TextValue"
        Rows="8"
        MaxRows="12"
        Columns="50"
        ResizeMode="MemoResizeMode.Vertical" />

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

RowsSpecifies the initial number of visible text lines. In Auto resize mode, specifies the minimum number of visible text lines.ColumnsSpecifies the Memo’s display width (the number of characters).ResizeModeSpecifies how the Memo component can be resized. See Also

DxMemo Class

DxMemo Members

DevExpress.Blazor Namespace