SpreadsheetImageSource.FromUri(String, IServiceContainer) Method
SECURITY NOTE
Downloading images passed as URLs to the From
method may create security issues. Review the following help topic and learn how to spot, analyze, and prohibit unwanted download requests:
Suppress Control Requests to Download Data from External URLs
Creates an image source object from the specified URI string.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v24.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. |
service |
IService |
An object providing the IUri |
#Returns
Type | Description |
---|---|
Spreadsheet |
A 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.