VbaModuleAttribute Class

The attribute of the VbaModule object
Inheritance Hierarchy
SystemObject
  Aspose.TasksVbaModuleAttribute

Namespace:  Aspose.Tasks
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax
public class VbaModuleAttribute : IEquatable<VbaModuleAttribute>

The VbaModuleAttribute type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleKey
Gets key of VBA module attribute.
Public propertyCode exampleValue
Gets value of VBA module attribute.
Methods
  NameDescription
Public methodCode exampleEquals(Object)
Returns a value indicating whether this instance is equal to the specified VbaModuleAttribute object.
(Overrides ObjectEquals(Object).)
Public methodCode exampleEquals(VbaModuleAttribute)
Returns a value indicating whether this instance is equal to the specified VbaModuleAttribute object.
Protected methodFinalize (Inherited from Object.)
Public methodCode exampleGetHashCode
Returns a hash code value for this VbaModuleAttribute.
(Overrides ObjectGetHashCode.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Examples
Shows how to work with VBA module attributes.
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("  VB Name: " + attribute.Key);
        Console.WriteLine("  Module: " + attribute.Value);
    }
}
See Also