Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SpreadImageCollection Class / Add Method
The SpreadImage object to add to the SpreadImageCollection.
Example


In This Topic
    Add Method (SpreadImageCollection)
    In This Topic
    Adds an image to the SpreadImageCollection object.
    Syntax
    'Declaration
     
    Public Function Add( _
       ByVal image As SpreadImage _
    ) As Integer
    'Usage
     
    Dim instance As SpreadImageCollection
    Dim image As SpreadImage
    Dim value As Integer
     
    value = instance.Add(image)
    public int Add( 
       SpreadImage image
    )

    Parameters

    image
    The SpreadImage object to add to the SpreadImageCollection.

    Return Value

    The position into which the new image was inserted.
    Example
    This example adds an image to the sheet.
    FarPoint.Web.Spread.SpreadImage image = new FarPoint.Web.Spread.SpreadImage("fplogo.png", 50, 50, 200, 150);
    FpSpread1.ActiveSheetView.Images.Add(image);
    Dim Image As New FarPoint.Web.Spread.SpreadImage("fplogo.png", 50, 50, 200, 150)
    FpSpread1.ActiveSheetView.Images.Add(Image)
    See Also