Show / Hide Table of Contents

Class ModuleCollection

Collection class for VBA modules

Inheritance
System.Object
ModuleCollection
Namespace: DRIT.Spreadsheet.Vba
Assembly: DRIT.Spreadsheet.dll
Syntax
public class ModuleCollection : IEnumerable<Module>

Properties

Count

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32

Item[Int32]

Declaration
public Module this[int index] { get; }
Parameters
Type Name Description
System.Int32 index
Property Value
Type Description
Module

Item[String]

Declaration
public Module this[string name] { get; }
Parameters
Type Name Description
System.String name
Property Value
Type Description
Module

Methods

AddClass(String, Boolean)

Adds a new VBA class

Declaration
public Module AddClass(string name, bool public)
Parameters
Type Name Description
System.String name

The name of the class

System.Boolean public

Private or Public not createble

Returns
Type Description
Module

The class object

AddDocument(String, Boolean)

Declaration
public Module AddDocument(string name, bool public)
Parameters
Type Name Description
System.String name
System.Boolean public
Returns
Type Description
Module

AddModule(String)

Adds a new VBA Module

Declaration
public Module AddModule(string name)
Parameters
Type Name Description
System.String name

The name of the module

Returns
Type Description
Module

The module object

GetEnumerator()

Declaration
public IEnumerator<Module> GetEnumerator()
Returns
Type Description
IEnumerator<Module>
Back to top Generated by DocFX