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


Xceed.Workbooks.NET Assembly > Xceed.Workbooks.NET Namespace > PictureCollection Class > Add Method : Add(Stream,Int32,Int32,Int32) Method
The stream for the image file that will be added.
The Id of the row where the top left corner of the picture will be located once it is inserted in the worksheet.
The Id of the column where the top left corner of the picture will be located once it is inserted in the worksheet.
The scale of the image.
The values start at 0 and represent a percentage. The default value is 100, which stands for 100%.
Adds a picture in the worksheet using a stream and a specific position corresponding to the top left corner of the picture.
Syntax
'Declaration

 

Public Overloads Function Add( _

   ByVal stream As Stream, _

   ByVal topLeftRowId As Integer, _

   ByVal topLeftColumnId As Integer, _

   Optional ByVal scale As Integer _

) As Picture
'Usage

 

Dim instance As PictureCollection

Dim stream As Stream

Dim topLeftRowId As Integer

Dim topLeftColumnId As Integer

Dim scale As Integer

Dim value As Picture

 

value = instance.Add(stream, topLeftRowId, topLeftColumnId, scale)

Parameters

stream
The stream for the image file that will be added.
topLeftRowId
The Id of the row where the top left corner of the picture will be located once it is inserted in the worksheet.
topLeftColumnId
The Id of the column where the top left corner of the picture will be located once it is inserted in the worksheet.
scale
The scale of the image.
The values start at 0 and represent a percentage. The default value is 100, which stands for 100%.
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