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

MemoExEdit.Lines Property

Gets or sets the text lines to be displayed in the dropdown window of an extended memo edit control.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

[DXCategory("Appearance")]
public string[] Lines { get; set; }

Property Value

Type Description
String[]

An array of lines containing the text of a memo editor.

Remarks

Use the Lines property to manipulate the text of an extended memo edit control in a line-by-line manner. Using members of the String object representing the property, you could, for instance, access a particular text line. Use the BaseEdit.Text property inherited from the BaseEdit class instead to work with the text as a single entity.

The Lines property contains only explicitly created lines, i.e., substrings of Text which are separated by the return characters. When the word wrap feature is enabled (the RepositoryItemMemoExEdit.WordWrap property is set to true), long text wraps automatically at the control’s right edge. The Lines property does not take into account such soft word wraps.

You are not able to use the Lines property to change a particular array’s element directly. Instead, you should read the Lines property to get the array, change the required array’s element and then assign the array back to Lines.

Each element in the Lines array becomes a line of text in the dropdown window associated with an extended memo editor. If a newline character appears in the text, the text following the newline character is added to a new element in the array and displayed on a separate line. A line feed or carriage return character (or either combination) denotes the end of a line.

See Also