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

DocumentImporterOptions.SourceUri Property

Gets or sets the base URI for the external content of the document.

Namespace: DevExpress.XtraRichEdit.Import

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

NuGet Package: DevExpress.RichEdit.Core

#Declaration

[Browsable(false)]
public virtual string SourceUri { get; set; }

#Property Value

Type Description
String

A string representing a base URI used for constructing an actual URI.

#Remarks

The following example illustrates how to use the BeforeImport event to specify the location of the loaded file’s external content:

using DevExpress.XtraRichEdit.Import;
using DevExpress.XtraRichEdit;

using (var wordProcessor = new RichEditDocumentServer()) {

    wordProcessor.BeforeImport += wordProcessor_BeforeImport;

     static void wordProcessor_BeforeImport(object sender, BeforeImportEventArgs e)
    {
        if (e.DocumentFormat == DocumentFormat.PlainText)
        {
            ((PlainTextDocumentImporterOptions)e.Options).SourceUri = @"C:\\Docs\";
        }
    }
}

#Implements

See Also