DocumentImporterOptions.SourceUri Property
Gets or sets the base URI for the external content of the document.
Namespace: DevExpress.XtraRichEdit.Import
Assembly: DevExpress.RichEdit.v24.1.Core.dll
NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation
Declaration
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