OleObjectCollection

OleObjectCollection class

Represents embedded OLE objects.

Properties

NameTypeDescription
Countint
Item (int)OleObjectGets the OleObject element at the specified index.

Methods

NameDescription
addAdds an OleObject to the collection.
clearRemove all embedded OLE objects.
removeAtRemoves the element at the specified index.
iterator
getReserved for internal use.
containsReserved for internal use.
indexOfReserved for internal use.

OleObjectCollection.Count property

Type: int

OleObjectCollection.Item (int) property

Gets the OleObject element at the specified index.

Type: OleObject

add(topRow, leftColumn, height, width, imageData) (1 of 3)

Adds an OleObject to the collection.

ParameterTypeDescription
upperLeftRowUpper left row index.
upperLeftColumnUpper left column index.
heightintHeight of oleObject, in unit of pixel.
widthintWidth of oleObject, in unit of pixel.
imageDatabyte[]Image of ole object as byte array.

Returns: OleObject object index.


add(topRow, leftColumn, height, width, imageData, linkedFile) (2 of 3)

Adds a linked OleObject to the collection.

ParameterTypeDescription
upperLeftRowUpper left row index.
upperLeftColumnUpper left column index.
heightintHeight of oleObject, in unit of pixel.
widthintWidth of oleObject, in unit of pixel.
imageDatabyte[]Image of ole object as byte array.
linkedFileString

Returns: OleObject object index.


add(value) (3 of 3)

Reserved for internal use.

clear()

Remove all embedded OLE objects.

removeAt(index)

Removes the element at the specified index.

ParameterTypeDescription
indexintThe specified index.

iterator()

get(index)

Reserved for internal use.

contains(value)

Reserved for internal use.

indexOf(value)

Reserved for internal use.