Class OleObjectCollection
A collection of OleObject objects belonging to a document.
Inherited Members
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 |