Class VbaReferenceCollection

VbaReferenceCollection class

Represents a collection of VbaReference objects.

public class VbaReferenceCollection : ReadOnlyCollectionBase<VbaReference>

Properties

NameDescription
Count { get; }
Item { get; set; }

Methods

NameDescription
Add(VbaReference)
GetEnumerator()
ToList()

Examples

Shows how to work with VBA reference collection.

var project = new Project(DataDir + "VbaProject.mpp");

Console.WriteLine("Reference count " + project.VbaProject.References.Count);

foreach (var reference in project.VbaProject.References)
{
    Console.WriteLine("Identifier: " + reference.LibIdentifier);
    Console.WriteLine("Name: " + reference.Name);
}

See Also