Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Document Interface

An interface that exposes the specific functionality of the document.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v24.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

#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).

See Also