Skip to main content
All docs
V25.2
  • MemoEdit.Text Property

    Gets or sets the text displayed in the MemoEdit control.

    Namespace: DevExpress.XtraEditors

    Assembly: DevExpress.XtraEditors.v25.2.dll

    NuGet Package: DevExpress.Win.Navigation

    Declaration

    public override string Text { get; set; }

    Property Value

    Type Description
    String

    The text displayed in the MemoEdit control.

    Remarks

    Use \r\n to specify line breaks.

    memoEdit.Text = "Project: Alpha\r\nStatus: In Progress\r\nOwner: John Smith";
    
    // Modify the second line.
    string[] lines = memoEdit.Lines;
    lines[1] = "Status: Completed";
    memoEdit.Lines = lines;
    

    The following code snippets (auto-collected from DevExpress Examples) contain references to the Text 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