Class VbaReferenceCollection
VbaReferenceCollection class
Represents a collection of VbaReference
objects.
public class VbaReferenceCollection : ReadOnlyCollectionBase<VbaReference>
Properties
Name | Description |
---|---|
Count { get; } | |
Item { get; set; } |
Methods
Name | Description |
---|---|
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
- class ReadOnlyCollectionBase<T>
- class VbaReference
- namespace Aspose.Tasks
- assembly Aspose.Tasks