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: 62.0.18910.3423 (62.0.18910.3423)
Syntax
C#
public void Add( string key, Stream imageData )
Parameters
- key
- Type: System.String
The key of the image. - imageData
- Type: System.IO.Stream
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.0, 12.5
See Also