Skip to main content
.NET Framework 4.5.2+

IUriProvider.CreateCssUri(String, String, String) Method

Creates URI for CSS data.

Namespace: DevExpress.Office.Services

Assembly: DevExpress.Office.v22.2.Core.dll

NuGet Package: DevExpress.Office.Core


string CreateCssUri(
    string rootUri,
    string styleText,
    string relativeUri


Name Type Description
rootUri String

A string that specifies the root URI.

styleText String

A string containing CSS definitions for which the URI is created.

relativeUri String

A string that specifies the relative part of the URI (path relative to the root).


Type Description

A string that is the URI of CSS data.


Implement the CreateCssUri method to supply an URI that is specific to the export type. Built-in URI providers return URI strings in the following forms:

  • file://<path>/style<NN>.png for the file based URI provider (HTML export)

By default, CSS data are included in the style tag within the HTML page. To save CSS definitions to an external file, set the HtmlDocumentExporterOptions.CssPropertiesExportType to the CssPropertiesExportType.Link value.

The following code snippets (auto-collected from DevExpress Examples) contain references to the CreateCssUri(String, String, String) method.


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.

See Also