• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class OleObjectCollection

A collection of OleObject objects belonging to a document.

Inheritance
object
OleObjectCollection
Implements
IEnumerable<OleObject>
IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public class OleObjectCollection : IEnumerable<OleObject>, IEnumerable

Properties

Count

Returns the number of OLE objects in this collection.

Declaration
public int Count { get; }
Property Value
Type Description
int

this[int]

Returns the OLE object at the given zero-based index.

Declaration
public OleObject this[int index] { get; }
Parameters
Type Name Description
int index
Property Value
Type Description
OleObject

Methods

Add(OleObject)

Appends an OLE object to this collection.

Declaration
public void Add(OleObject item)
Parameters
Type Name Description
OleObject item

Clear()

Removes all OLE objects from this collection.

Declaration
public void Clear()

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
public IEnumerator<OleObject> GetEnumerator()
Returns
Type Description
IEnumerator<OleObject>

The resulting value.

Remove(OleObject)

Removes the specified OLE object. Returns true if found and removed.

Declaration
public bool Remove(OleObject item)
Parameters
Type Name Description
OleObject item
Returns
Type Description
bool

Implements

IEnumerable<T>
IEnumerable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX