Skip to main content
A newer version of this page is available. .

RepositoryItemMemoEdit.LinesCount Property

Gets or sets the number of lines to be displayed in a memo editor when it acts as an in-place control.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(0)]
[SmartTagProperty("Lines Count", "")]
public int LinesCount { get; set; }

Property Value

Type Default Description
Int32 0

An integer value specifying the number of lines displayed by an in-place memo editor.

Remarks

The LinesCount property is in effect when a memo editor is used as an in-place editor by a container control (for instance, XtraGrid). Typically, such controls can change the height of their horizontal items (rows) based upon the height of embedded editors. When its container control’s auto height feature is active, the editor’s LinesCount property specifies the number of lines the editor contains.

By default, the memo editor wraps long text at the control’s right edge. In this case, the editor implicitly adds new lines, though the text may not contain carriage return characters. This word wrap feature is controlled by the RepositoryItemMemoEdit.WordWrap property. The LinesCount property takes into account both explicit and implicit line wraps.

By default, the LinesCount property is set to 0 to specify that all the memo editor’s text should be displayed.

The following image shows how the memo editor’s LinesCount property affects the XtraGrid’s appearance.

MemoEdit_LinesCount.gif

Changing the value of this property at runtime raises the RepositoryItem.PropertiesChanged event.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the LinesCount property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also