Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

Document Interface

An interface that exposes the specific functionality of the document.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

[ComVisible(true)]
public interface Document :
    SubDocument

Remarks

While the SubDocument exposes the basic functionality of the document (formatting, text operations), the Document interface is responsible for more specific operations. Such a differentiation allows for proper handling of actions performed in the header/footer sections of the document.

The Document class exposes several properties and methods that allow you to specify units of measurement (Document.Unit), access its contents (Document.Sections and SubDocument.Paragraphs), and programmatically perform the most popular edit actions (Document.Copy, Document.Paste, Document.Cut, SubDocument.Delete, SubDocument.InsertText), as well as export and import its RTF contents (Document.SaveDocument and Document.LoadDocument).

The following code snippets (auto-collected from DevExpress Examples) contain references to the Document interface.

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