• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class ModuleCollection

Collection class for VBA modules

Inheritance
object
ModuleCollection
Implements
IEnumerable<Module>
IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Document.Vba
Assembly: DRIT.Document.dll
Syntax
public class ModuleCollection : IEnumerable<Module>, IEnumerable

Properties

Count

Gets count.

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

this[int]

Gets this[int].

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

this[string]

Gets this[string].

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

Methods

AddClass(string, bool)

Adds a new VBA class

Declaration
public Module AddClass(string name, bool @public)
Parameters
Type Name Description
string name

The name of the class

bool public

Private or Public not createble

Returns
Type Description
Module

The class object

AddDocument(string, bool)

Adds a document module to the VBA project.

Declaration
public Module AddDocument(string name, bool @public)
Parameters
Type Name Description
string name

The module name.

bool public

Whether the module is exposed as public.

Returns
Type Description
Module

The new document module.

AddModule(string)

Adds a new VBA Module

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

The name of the module

Returns
Type Description
Module

The module object

Contains(string)

Provides the contains behavior for this object.

Declaration
public bool Contains(string name)
Parameters
Type Name Description
string name

The name of the item.

Returns
Type Description
bool

The resulting value.

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
public IEnumerator<Module> GetEnumerator()
Returns
Type Description
IEnumerator<Module>

The resulting value.

Implements

IEnumerable<T>
IEnumerable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX