Skip to main content
All docs
V25.1
  • Row

    OleObjectCollection Methods

    A collection of OLE objects within a worksheet.
    Name Description
    AddEmbeddedOleObject(Cell, Single, Single, Byte[], OleObjectType, SpreadsheetImageSource) Inserts an embedded OLE object from an array of bytes into the specified position.
    AddEmbeddedOleObject(Cell, Single, Single, Stream, OleObjectType, SpreadsheetImageSource) Inserts an embedded OLE object from a stream into the specified position.
    AddEmbeddedOleObject(CellRange, Byte[], OleObjectType, SpreadsheetImageSource) Inserts an embedded OLE object from an array of bytes into the specified cell range.
    AddEmbeddedOleObject(CellRange, Stream, OleObjectType, SpreadsheetImageSource) Inserts an embedded OLE object from a stream into the specified cell range.
    AddEmbeddedOleObject(Single, Single, Single, Single, Byte[], OleObjectType, SpreadsheetImageSource) Inserts an embedded OLE object from an array of bytes into the specified position.
    AddEmbeddedOleObject(Single, Single, Single, Single, Stream, OleObjectType, SpreadsheetImageSource) Adds an embedded OLE object from a stream into the specified position.
    AddLinkedOleObject(Cell, Single, Single, String, OleObjectType, SpreadsheetImageSource) Inserts a linked OLE object into the specified position.
    AddLinkedOleObject(CellRange, String, OleObjectType, SpreadsheetImageSource) Inserts a linked OLE object into the specified cell range.
    AddLinkedOleObject(Single, Single, Single, Single, String, OleObjectType, SpreadsheetImageSource) Inserts a linked OLE object from a file into the specified position.
    Clear() Removes all OLE objects from the worksheet.
    Contains(OleObject) Checks whether the collection contains the specified OLE object.
    CopyTo(Array, Int32) Copies the elements of the ICollection to an Array, starting at a particular Array index. Inherited from ICollection.
    GetEnumerator() Returns an enumerator that iterates through the collection. Inherited from IEnumerable<T>.
    GetOleObjectById(Int32) Returns an OLE object by its ID value.
    GetOleObjectsByName(String) Returns OLE objects with the given name.
    IndexOf(OleObject) Returns the position of the specified OLE object in the collection.
    Remove(OleObject) Removes the specified OLE object from the collection.
    RemoveAt(Int32) Removes the OLE object with the specified index from the collection.
    See Also