Class VbaModuleAttributeCollection
VbaModuleAttributeCollection class
Represents a collection of VbaModuleAttribute objects.
public class VbaModuleAttributeCollection : ReadOnlyCollectionBase<VbaModuleAttribute>
Properties
| Name | Description |
|---|---|
| Count { get; } | |
| Item { get; set; } |
Methods
| Name | Description |
|---|---|
| Add(VbaModuleAttribute) | |
| GetEnumerator() | |
| ToList() |
Examples
Shows how to iterate over VBA module’s attribute collection.
var project = new Project(DataDir + "VbaProject.mpp");
foreach (var module in project.VbaProject.Modules)
{
Console.WriteLine("Attributes Count: " + module.Attributes.Count);
foreach (var attribute in module.Attributes)
{
Console.WriteLine("Attribute Name: " + attribute.Key);
Console.WriteLine("Attribute Value: " + attribute.Value);
}
}
See Also
- class ReadOnlyCollectionBase<T>
- class VbaModuleAttribute
- namespace Aspose.Tasks
- assembly Aspose.Tasks