Document Solutions for Excel, .NET Edition | Document Solutions
GrapeCity.Documents.Excel.Drawing Namespace / IShapes Interface / AddPicture Method / AddPicture(Stream,ImageType,IRange) Method
The stream from which the object is to be created.
Specifies the type of picture to create.
The target range of the current sheet.
In This Topic
    AddPicture(Stream,ImageType,IRange) Method
    In This Topic
    Creates a picture from an existing stream at the specified range on the current sheet.

    The sheet of targetRange and the sheet of the shape being added must be the same sheet.

    Returns the IShape object that represents the new picture.
    Syntax
    IShape AddPicture( 
       System.IO.Stream stream,
       ImageType type,
       IRange targetRange
    )

    Parameters

    stream
    The stream from which the object is to be created.
    type
    Specifies the type of picture to create.
    targetRange
    The target range of the current sheet.

    Return Value

    The IShapeThe object.
    See Also