Xceed Workbooks for .NET v1.4 Documentation
Add(Stream,String,String) Method


Xceed.Workbooks.NET Assembly > Xceed.Workbooks.NET Namespace > PictureCollection Class > Add Method : Add(Stream,String,String) Method
The stream for the image file that will be added.
The address of the cell where the top left corner of the picture will be located once it is inserted in the worksheet.
The address of the cell to which the bottom right corner of the picture will extend once it is inserted in the worksheet.
Adds a picture in the worksheet using a filename and two specific positions, corresponding respectively to the picture's top left and bottom right corner.
Syntax
'Declaration

 

Public Overloads Function Add( _

   ByVal stream As Stream, _

   ByVal topLeftCellAddress As String, _

   ByVal bottomRightCellAddress As String _

) As Picture
'Usage

 

Dim instance As PictureCollection

Dim stream As Stream

Dim topLeftCellAddress As String

Dim bottomRightCellAddress As String

Dim value As Picture

 

value = instance.Add(stream, topLeftCellAddress, bottomRightCellAddress)

Parameters

stream
The stream for the image file that will be added.
topLeftCellAddress
The address of the cell where the top left corner of the picture will be located once it is inserted in the worksheet.
bottomRightCellAddress
The address of the cell to which the bottom right corner of the picture will extend once it is inserted in the worksheet.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PictureCollection Class
PictureCollection Members
Overload List