OleObjectCollection.Add

Add(int, int, int, int, byte[])

Adds an OleObject to the collection.

public int Add(int upperLeftRow, int upperLeftColumn, int height, int width, byte[] imageData)
ParameterTypeDescription
upperLeftRowInt32Upper left row index.
upperLeftColumnInt32Upper left column index.
heightInt32Height of oleObject, in unit of pixel.
widthInt32Width of oleObject, in unit of pixel.
imageDataByte[]Image of ole object as byte array.

Return Value

OleObject object index.

See Also


Add(int, int, int, int, byte[], string)

Adds a linked OleObject to the collection.

public int Add(int upperLeftRow, int upperLeftColumn, int height, int width, byte[] imageData, 
    string linkedFile)
ParameterTypeDescription
upperLeftRowInt32Upper left row index.
upperLeftColumnInt32Upper left column index.
heightInt32Height of oleObject, in unit of pixel.
widthInt32Width of oleObject, in unit of pixel.
imageDataByte[]Image of ole object as byte array.
linkedFileString

Return Value

OleObject object index.

See Also