SpreadsheetImageSource.FromUri(String, IServiceContainer) Method
SECURITY NOTE
Downloading images passed as URLs to the Suppress Control Requests to Download Data from External URLsFromUri
method may create security issues. Review the following help topic and learn how to spot, analyze, and prohibit unwanted download requests:
Creates an image source object from the specified URI string.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v23.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
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 you to obtain 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.
Related GitHub Examples
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.