Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

DocumentImporterOptions.SourceUri Property

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

Namespace: DevExpress.XtraRichEdit.Import

Assembly: DevExpress.RichEdit.v20.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.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to SourceUri
WinForms Controls RichTextEditDocumentImportOptions
.WordML .SourceUri
Office File API RichEditDocumentImportOptions
.WordML .SourceUri

Remarks

View Example: Import from HTML - Specify Encoding and External Content

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

private void richEditControl2_BeforeImport(object sender, BeforeImportEventArgs e) {
    if(e.DocumentFormat == DocumentFormat.PlainText) {
        ((PlainTextDocumentImporterOptions)e.Options).Encoding = cur_Encoding;
    }
}

Implements

See Also