Skip to main content

DxMemo.ResizeMode Property

Specifies how users can resize the Memo component.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(MemoResizeMode.Vertical)]
[Parameter]
public MemoResizeMode ResizeMode { get; set; }

Property Value

Type Default Description
MemoResizeMode Vertical

A MemoResizeMode enumeration value.

Available values:

Name Description
Disabled

Users are not allowed to resize the component.

Vertical

Users can only change the component height.

Horizontal

Users can only change the component’s width.

VerticalAndHorizontal

Users can change both the component height and width.

Remarks

Use the ResizeMode property to specify how users can resize the Memo component. The following resize modes are available:

  • Vertical (Default) - Users can only change the component’s height.
  • Horizontal - Users can only change the component’s width.
  • VerticalAndHorizontal - Users can change the component’s height and width.
<DxMemo @bind-Text="@TextValue"
        ResizeMode="MemoResizeMode.VerticalAndHorizontal">
</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 - Resize Modes

To prohibit users from resizing the Memo component, set the ResizeMode property to Disabled. Use the Rows and Columns properties to specify the component’s size.

<DxMemo @bind-Text="@TextValue"
        ResizeMode="MemoResizeMode.Disabled"
        Rows="7"
        Columns="52" >
</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 - Disabled Resize Mode

Run Demo: Memo - Resize Modes

See Also