Skip to main content
A newer version of this page is available. .
Row

SpreadsheetImageSource.FromUri(String, IServiceContainer) Method

Creates an image source object from the specified URI string.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v18.2.Core.dll

Declaration

[ComVisible(false)]
public static SpreadsheetImageSource FromUri(
    string uri,
    IServiceContainer serviceContainer
)

Parameters

Name Type Description
uri String

A string of characters identifying the resource in the Internet that can be interpreted as an image.

serviceContainer IServiceContainer

An object providing the IUriStreamService interface which allows obtaining a data stream for a specified URI.

Returns

Type Description
SpreadsheetImageSource

A SpreadsheetImageSource object representing the image in the spreadsheet.

Remarks

Use a Workbook instance as the service container to get images for the specified URI. You can also implement your own service provider, if required. See the IUriStreamProvider topic for more information.

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

Note

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