Class OleObjectCollection
Represents the ole object collection class used by the spreadsheet model.
Inherited Members
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public class OleObjectCollection : IEnumerable<OleObject>, IEnumerable
Properties
Count
Reports the number of items currently held by OleObjectCollection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int | The count returned by the operation. |
this[int]
Provides indexed access to values in OleObjectCollection.
Declaration
public OleObject this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| OleObject |
Methods
Clear()
Exposes the clear associated with OleObjectCollection.
Declaration
public void Clear()
Embed(string, string, string)
Embeds a
Declaration
public OleObject Embed(string anchorCellAddress, string olePath, string imagePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | anchorCellAddress | |
| string | olePath | |
| string | imagePath |
Returns
| Type | Description |
|---|---|
| OleObject |
GetByAnchoredCellLabel(string)
Retrieves the requested by anchored cell label from OleObjectCollection.
Declaration
public IEnumerable<OleObject> GetByAnchoredCellLabel(string label)
Parameters
| Type | Name | Description |
|---|---|---|
| string | label | The label used by the operation. |
Returns
| Type | Description |
|---|---|
| IEnumerable<OleObject> | The get by anchored cell label returned by the operation. |
GetEnumerator()
Retrieves the requested enumerator from OleObjectCollection.
Declaration
public IEnumerator<OleObject> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<OleObject> | The get enumerator returned by the operation. |
Link(string, string)
Exposes the link associated with OleObjectCollection.
Declaration
public OleObject Link(string anchorCellAddress, string filePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | anchorCellAddress | The anchor cell address used by the operation. |
| string | filePath | The file path used by the operation. |
Returns
| Type | Description |
|---|---|
| OleObject | The link returned by the operation. |
Remove(OleObject)
Removes the selected item from OleObjectCollection.
Declaration
public bool Remove(OleObject item)
Parameters
| Type | Name | Description |
|---|---|---|
| OleObject | item | The item used by the operation. |
Returns
| Type | Description |
|---|---|
| bool | The remove returned by the operation. |