Back to Devexpress

IUriProvider.CreateCssUri(String, String, String) Method

officefileapi-devexpress-dot-office-dot-services-dot-iuriprovider-dot-createcssuri-x28-system-dot-string-system-dot-string-system-dot-string-x29.md

latest2.4 KB
Original Source

IUriProvider.CreateCssUri(String, String, String) Method

Creates URI for CSS data.

Namespace : DevExpress.Office.Services

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

NuGet Package : DevExpress.Office.Core

Declaration

csharp
string CreateCssUri(
    string rootUri,
    string styleText,
    string relativeUri
)
vb
Function CreateCssUri(
    rootUri As String,
    styleText As String,
    relativeUri As String
) As String

Parameters

NameTypeDescription
rootUriString

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).

|

Returns

TypeDescription
String

A string that is the URI of CSS data.

|

Remarks

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.

See Also

IUriProvider Interface

IUriProvider Members

DevExpress.Office.Services Namespace