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

Class VbaReferenceCollection

Provides indexed access to references declared by a VBA project.

Inheritance
object
VbaReferenceCollection
Implements
IEnumerable<VbaReference>
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.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.

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