[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IShapes.AddCameraPicture

AddCameraPicture Method

AddCameraPicture(string, double, double)

Creates a picture from reference range.Returns the IShape object that represents the new picture.

Declaration
IShape AddCameraPicture(string reference, double left, double top)
Function AddCameraPicture(reference As String, left As Double, top As Double) As IShape
Parameters
Type Name Description
string reference

The range of the picture generated from.

double left

The position (in points) of the upper-left corner of the picture relative to the upper-left corner of the document.

double top

The position (in points) of the upper-left corner of the picture relative to the top of the document.

Returns
Type Description
IShape

The IShapeThe object.

AddCameraPicture(string, double, double, double, double)

Creates a picture from reference range.Returns the IShape object that represents the new picture.

Declaration
IShape AddCameraPicture(string reference, double left, double top, double width, double height)
Function AddCameraPicture(reference As String, left As Double, top As Double, width As Double, height As Double) As IShape
Parameters
Type Name Description
string reference

The range of the picture generated from.

double left

The position (in points) of the upper-left corner of the picture relative to the upper-left corner of the document.

double top

The position (in points) of the upper-left corner of the picture relative to the top of the document.

double width

The width and height of the AutoShape's boundary box, in points.

double height

The width and height of the AutoShape's boundary box, in points.

Returns
Type Description
IShape

The IShapeThe object.

AddCameraPicture(string, IRange)

Creates a picture from reference range to the target 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.

Declaration
IShape AddCameraPicture(string reference, IRange targetRange)
Function AddCameraPicture(reference As String, targetRange As IRange) As IShape
Parameters
Type Name Description
string reference

The range of the picture generated from.

IRange targetRange

The target range of the current sheet.

Returns
Type Description
IShape

The IShapeThe object.

AddCameraPicture(string, string, double, double)

Creates a picture from reference range.Returns the IShape object that represents the new picture.

Declaration
IShape AddCameraPicture(string reference, string name, double left, double top)
Function AddCameraPicture(reference As String, name As String, left As Double, top As Double) As IShape
Parameters
Type Name Description
string reference

The range of the picture generated from.

string name

The picture name.

double left

The position (in points) of the upper-left corner of the picture relative to the upper-left corner of the document.

double top

The position (in points) of the upper-left corner of the picture relative to the top of the document.

Returns
Type Description
IShape

The IShapeThe object.

AddCameraPicture(string, string, double, double, double, double)

Creates a picture from reference range.Returns the IShape object that represents the new picture.

Declaration
IShape AddCameraPicture(string reference, string name, double left, double top, double width, double height)
Function AddCameraPicture(reference As String, name As String, left As Double, top As Double, width As Double, height As Double) As IShape
Parameters
Type Name Description
string reference

The range of the picture generated from.

string name

The picture name.

double left

The position (in points) of the upper-left corner of the picture relative to the upper-left corner of the document.

double top

The position (in points) of the upper-left corner of the picture relative to the top of the document.

double width

The width and height of the AutoShape's boundary box, in points.

double height

The width and height of the AutoShape's boundary box, in points.

Returns
Type Description
IShape

The IShapeThe object.

AddCameraPicture(string, string, IRange)

Creates a picture from reference range to 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.

Declaration
IShape AddCameraPicture(string reference, string name, IRange targetRange)
Function AddCameraPicture(reference As String, name As String, targetRange As IRange) As IShape
Parameters
Type Name Description
string reference

The range of the picture generated from.

string name

The picture name.

IRange targetRange

The target range of the current sheet.

Returns
Type Description
IShape

The IShapeThe object.