blazor-devexpress-dot-blazor-dot-imemosettings.md
Specifies how users can resize the memo.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(MemoResizeMode.Vertical)]
[Parameter]
MemoResizeMode ResizeMode { get; set; }
| Type | Default | Description |
|---|---|---|
| MemoResizeMode | Vertical |
An enumeration value.
|
Available values:
| Name | Description |
|---|---|
| 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.
|
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:
Call the GetColumnEditSettings method to get editor settings of the column bound to the specified data source field.
Handle the CustomizeFilterRowEditor event to customize a cell editor in the filter row.
void Grid_CustomizeFilterRowEditor(GridCustomizeFilterRowEditorEventArgs e) {
if(e.EditSettings is IMemoSettings memoSettings)
memoSettings.ResizeMode = DevExpress.Blazor.MemoResizeMode.Disabled;
}
void Grid_CustomizeDataRowEditor(GridCustomizeDataRowEditorEventArgs e) {
if(e.EditSettings is IMemoSettings memoSettings)
memoSettings.ResizeMode = DevExpress.Blazor.MemoResizeMode.Disabled;
}
See Also