Xceed Workbooks for .NET v3.0 Documentation
Xceed.Workbooks.NET Assembly / Xceed.Workbooks.NET Namespace / PictureCollection Class / Add Method / Add(String,String,String) Method
The path for the image file to 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.


In This Topic
    Add(String,String,String) Method
    In This Topic
    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 filename As String, _
       ByVal topLeftCellAddress As String, _
       ByVal bottomRightCellAddress As String _
    ) As Picture
    'Usage
     
    
    Dim instance As PictureCollection
    Dim filename As String
    Dim topLeftCellAddress As String
    Dim bottomRightCellAddress As String
    Dim value As Picture
     
    value = instance.Add(filename, topLeftCellAddress, bottomRightCellAddress)

    Parameters

    filename
    The path for the image file to 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.
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also