Adds an image to the text area. It can be referenced from the HTML content using the key used as filename.
Namespace: Spotfire.Dxp.Application
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
Syntax
C#
public void Add( string key, Stream imageData )
Parameters
- key
- Type: SystemString
The key of the image. - imageData
- Type: System.IOStream
The image to add. This should be in a format supported by web browsers, for instance PNG or JPG.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If key is null, or imageData is null. |
ArgumentException | If key is an empty string. |
Version Information
Supported in: 14.3, 14.2, 14.1, 14.0, 12.5
See Also