Class VbaReferenceCollection
Provides indexed access to references declared by a VBA project.
Inherited Members
Namespace: DRIT.Document.Vba
Assembly: DRIT.Document.dll
Syntax
public class VbaReferenceCollection : IEnumerable<VbaReference>, IEnumerable
Properties
Count
Gets the number of references.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets a reference by zero-based index.
Declaration
public VbaReference this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based reference index. |
Property Value
| Type | Description |
|---|---|
| VbaReference |
Methods
Add(VbaReference)
Adds a reference.
Declaration
public void Add(VbaReference reference)
Parameters
| Type | Name | Description |
|---|---|---|
| VbaReference | reference | The reference to add. |
GetEnumerator()
Returns an enumerator for the references.
Declaration
public IEnumerator<VbaReference> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<VbaReference> |
Remove(VbaReference)
Removes a reference.
Declaration
public bool Remove(VbaReference reference)
Parameters
| Type | Name | Description |
|---|---|---|
| VbaReference | reference | The reference to remove. |
Returns
| Type | Description |
|---|---|
| bool | true when the reference was removed. |
RemoveAt(int)
Removes the reference at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based reference index. |