VbaReferenceCollection Class

Represents a collection of VbaReference objects.
Inheritance Hierarchy
SystemObject
  Aspose.TasksReadOnlyCollectionBaseVbaReference
    Aspose.TasksVbaReferenceCollection

Namespace:  Aspose.Tasks
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax
public class VbaReferenceCollection : ReadOnlyCollectionBase<VbaReference>

The VbaReferenceCollection type exposes the following members.

Properties
Methods
  NameDescription
Public methodAdd
This is the stub implementation of ICollection's Add method, that only throws NotSupportedException
(Inherited from ReadOnlyCollectionBaseT.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodCode exampleGetEnumerator
Returns an enumerator for this collection.
(Inherited from ReadOnlyCollectionBaseT.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodCode exampleToList
Converts the collection object to a list of VbaModule objects.
(Inherited from ReadOnlyCollectionBaseT.)
Public methodToString (Inherited from Object.)
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