Class VbaModule

Class VbaModule

Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.7.0)

Represents a VBA module.

public sealed class VbaModule : IVbaModule

Inheritance

object VbaModule

Implements

IVbaModule

Inherited Members

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Properties

Attributes

Gets a collection of the module’s attributes.

public VbaModuleAttributeCollection Attributes { get; }

Property Value

VbaModuleAttributeCollection

Name

Gets a name of the VBA module

public string Name { get; set; }

Property Value

string

SourceCode

Gets or sets a source code of the VBA module

public string SourceCode { get; set; }

Property Value

string

Type

Gets the type of the module.

public VbaModuleType Type { get; }

Property Value

VbaModuleType

Methods

CreateClassModule(string)

Creates an instance of Aspose.Tasks.VbaModule with VbaModuleType.ClassModule type.

public static VbaModule CreateClassModule(string name)

Parameters

name string

Returns

VbaModule

CreateProceduralModule(string)

Creates an instance of Aspose.Tasks.VbaModule with VbaModuleType.ProceduralModule type.

public static VbaModule CreateProceduralModule(string name)

Parameters

name string

Returns

VbaModule

 English