aspnetmvc-8991-components-data-editors-extensions-memo.md
Memo is an editor allowing multi-line text to be displayed and edited.
Memo is realized by the MemoExtension class. Its instance can be accessed via the ExtensionsFactory.Memo helper method, which is used to add a Memo extension to a view. This method’s parameter provides access to the Memo ‘s settings, implemented by the MemoSettings class, allowing you to fully customize the extension.
Memo ‘s client counterpart is represented by the ASPxClientMemo object.
Memo can be added to a view in the following manner.
View code (Razor):
@Html.DevExpress().Memo(settings => {
settings.Name = "memo1";
settings.Text = "The editor's size can be controlled either by its Width and Height properties or, if they are not defined, by using the Columns and Rows properties.";
settings.Properties.Columns = 40;
settings.Properties.Rows = 6;
}).GetHtml()
Note
The Partial View should contain only the extension’s code.
The code result is demonstrated in the image below.
The Memo extension is a text editor which allows multi-line input.
Memo offers the following features.
Automatic Scroll Bar Activation
Null Prompt Text
Built-in Validation
Full-Featured Client-Side API