Back to Devexpress

DxMemo.Rows Property

blazor-devexpress-dot-blazor-dot-dxmemo-3306d6c0.md

latest2.2 KB
Original Source

DxMemo.Rows Property

Specifies the initial number of visible text lines. In Auto resize mode, specifies the minimum number of visible text lines.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
Int322

The number of visible text lines.

|

Remarks

Use the Rows property to specify the number of visible text lines in the Memo component. When content exceeds this limit, the Memo displays a vertical scrollbar.

Note

In Auto resize mode, this property specifies the minimum number of text lines.

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

Run Demo: Memo - Custom Size

MaxRowsSpecifies the maximum 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