Skip to main content

IUriProvider Interface

Obsolete. Defines the provider of the locations for external objects in a document export.

Namespace: DevExpress.XtraRichEdit.Services

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

Declaration

[Obsolete("Please use the DevExpress.Office.Services.IUriProvider instead", true)]
[ComVisible(true)]
public interface IUriProvider :
    IUriProvider
<Obsolete("Please use the DevExpress.Office.Services.IUriProvider instead", True)>
<ComVisible(True)>
Public Interface IUriProvider
    Inherits IUriProvider

Remarks

When the document is exported to a format that implies that a part of the document's content is located externally, such as HTML format, the IUriProvider interface provides Uniform Resource Locators (URI) for the external objects. The IUriProvider.CreateCssUri method processes the style information , and the IUriProvider.CreateImageUri processes images.

An object implementing the IUriProvider interface is specified as the parameter for the SubDocument.GetHtmlText method.

This code snippet shows the implementation of the IUriProvider interface that allows saving images to custom locations and provides links (Uri) to them.

An instance of the class exposing the IUriProvider interface is passed as the parameter to the SubDocument.GetHtmlText method. The IUriProvider.CreateImageUri method is called for each image contained in the document range being saved. The IUriProvider.CreateCssUri method is not called in this case.

Both CreateCssUriand CreateImageUri methods will be called if the corresponding UriProvider is registered in the control's IUriProviderService and the Document.SaveDocument method is called with the DocumentFormat.Html parameter.

See Also