Back to Devexpress

IMemoSettings.ResizeMode Property

blazor-devexpress-dot-blazor-dot-imemosettings.md

latest2.6 KB
Original Source

IMemoSettings.ResizeMode Property

Specifies how users can resize the memo.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
MemoResizeModeVertical

An enumeration value.

|

Available values:

NameDescription
Disabled

Users cannot resize the component.

| | Vertical |

Users can resize the component vertically.

| | Horizontal |

Users can resize the component horizontally.

| | Auto |

The Memo changes its height automatically based on content. Users cannot resize the component.

| | VerticalAndHorizontal |

Users can resize the component in both directions.

|

Remarks

Use the ResizeMode property to specify how users can resize the memo or to prevent users from resizing it at runtime. To change the resize mode in markup, use the DxMemoSettings.ResizeMode property.

The IMemoSettings interface allows you to get and customize settings of a memo editor at runtime. You can get editor settings in the following ways:

csharp
void Grid_CustomizeFilterRowEditor(GridCustomizeFilterRowEditorEventArgs e) {
    if(e.EditSettings is IMemoSettings memoSettings)
        memoSettings.ResizeMode = DevExpress.Blazor.MemoResizeMode.Disabled;
}
csharp
void Grid_CustomizeDataRowEditor(GridCustomizeDataRowEditorEventArgs e) {
    if(e.EditSettings is IMemoSettings memoSettings)
        memoSettings.ResizeMode = DevExpress.Blazor.MemoResizeMode.Disabled;
}

See Also

IMemoSettings Interface

IMemoSettings Members

DevExpress.Blazor Namespace