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.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
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.
Changing the value of this property at runtime raises the RepositoryItem.PropertiesChanged event.