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

RichEditControl.Modified Property

Gets or sets a value that indicates that the RichEdit control contents was modified since it was last saved.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.XtraRichEdit.v18.2.dll

Declaration

[Browsable(false)]
[DefaultValue(false)]
public bool Modified { get; set; }

Property Value

Type Default Description
Boolean **false**

true if the control’s contents was modified since it was last saved; otherwise, false.

Remarks

You can use the Modified property to distinguish between document loading and modifying within the RichEditControl.ContentChanged event handler.

The RichEditControl.SaveDocument, RichEditControl.SaveDocumentAs or Document.SaveDocument method call does not automatically change the Modified property value. However, the SaveDocumentCommand or SaveDocumentAsCommand execution changes the Modified property value to false.

When the Modified property value is changed, the RichEditControl.ModifiedChanged event raises.

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