Back to Devexpress

IRichEditDocumentServer.Document Property

officefileapi-devexpress-dot-xtrarichedit-dot-iricheditdocumentserver.md

latest3.3 KB
Original Source

IRichEditDocumentServer.Document Property

Provides access to a Document interface, representing the document contained in the server.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
Document Document { get; }
vb
ReadOnly Property Document As Document

Property Value

TypeDescription
Document

A Document interface that provides access to a loaded document.

|

Remarks

The Document property is the main access point to RichEdit API.

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

winforms-richedit-create-a-master-detail-report/CS/RichEditMasterDetailMailMerge/Form1.cs#L92

csharp
//Merge the document and pass it to the RichEditDocumentServer:
masterRichEdit.MailMerge(options, result.Document);
result.CalculateDocumentVariable -= result_CalculateDocumentVariable;

office-file-api-ai-implementation/CS/BusinessObjects/RichEditExtension.cs#L7

csharp
internal static void IterateSubDocuments(this IRichEditDocumentServer server, Action<SubDocument> action) {
    Document document = server.Document;
    UpdateSubDocument(document, action);

winforms-richedit-create-a-master-detail-report/VB/RichEditMasterDetailMailMerge/Form1.vb#L86

vb
'Merge the document and pass it to the RichEditDocumentServer:
masterRichEdit.MailMerge(options, result.Document)
RemoveHandler result.CalculateDocumentVariable, AddressOf result_CalculateDocumentVariable

See Also

IRichEditDocumentServer Interface

IRichEditDocumentServer Members

DevExpress.XtraRichEdit Namespace