Back to Devexpress

Document Interface

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-60571916.md

latest6.0 KB
Original Source

Document Interface

An interface that exposes the specific functionality of the document.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[ComVisible(true)]
public interface Document :
    SubDocument
vb
<ComVisible(True)>
Public Interface Document
    Inherits SubDocument

The following members return Document objects:

Show 13 links

LibraryRelated API Members
WinForms ControlsRichEditControl.Document
WPF ControlsRichEditControl.Document
Office File APIIRichEditControl.Document
IRichEditDocumentServer.Document
MailMergeFinishedEventArgs.Document
MailMergeRecordFinishedEventArgs.Document
MailMergeRecordFinishedEventArgs.RecordDocument
MailMergeRecordStartedEventArgs.Document
MailMergeRecordStartedEventArgs.RecordDocument
MailMergeStartedEventArgs.Document
RichEditDocumentServer.Document
RichEditDocumentServerExtensions.Compare(Document, Document, CompareDocumentOptions)
RichEditDocumentServerExtensions.Compare(Document, Document)

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

Extension Methods

Compare(Document)

Compare(Document, CompareDocumentOptions)

Compare(Document, ComparisonTargetType)

Compare(Document, CompareDocumentOptions, ComparisonTargetType)

ExportToImage(String)

ExportToImage(String, RichEditImageExportOptions)

ExportToImage()

ExportToImage(RichEditImageExportOptions)

See Also

Document Members

SubDocument

DevExpress.XtraRichEdit.API.Native Namespace