Back to Devexpress

DxMemo.Columns Property

blazor-devexpress-dot-blazor-dot-dxmemo-62c3834b.md

latest2.1 KB
Original Source

DxMemo.Columns Property

Specifies the Memo’s display width (the number of characters).

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(0)]
[Parameter]
public int Columns { get; set; }

Property Value

TypeDefaultDescription
Int320

The number of characters.

|

Remarks

The Memo editor stretches to fit the parent container’s width. To change this behavior, use the Columns property to specify 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.";
}

Run Demo: Memo - Custom Size

RowsSpecifies the initial number of visible text lines. In Auto resize mode, specifies the minimum number of visible text lines.MaxRowsSpecifies the maximum number of visible text lines.ResizeModeSpecifies how the Memo component can be resized. See Also

DxMemo Class

DxMemo Members

DevExpress.Blazor Namespace