# OfficeVbaModule

A detached source module belonging to one editable VBA project.

Class 

`OfficeIMO`

**Namespace**

`OfficeIMO`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`15caddadea70` with working tree changes

**Source**

[OfficeVbaModels.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Documents/Vba/OfficeVbaModels.cs#L22)

**Modifiers**

sealed

A detached source module belonging to one editable VBA project.

## Inheritance

- object
- OfficeVbaModule

## Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 4

- Method [OfficeVbaProject.AddDocumentModule](/api/core/officeimo-officevbaproject/#method-adddocumentmodule-string-string-guid)
- Method [OfficeVbaProject.AddModule](/api/core/officeimo-officevbaproject/#method-addmodule-string-string-officeimo-officevbamodulekind)
- Method [OfficeVbaProject.GetModule](/api/core/officeimo-officevbaproject/#method-getmodule-string)
- Property [OfficeVbaProject.Modules](/api/core/officeimo-officevbaproject/#property-modules)

Filter members 

Show inherited

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Name { get; internal set; }` [#](#property-name)

[OfficeVbaModels.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Documents/Vba/OfficeVbaModels.cs#L22)

Gets the logical module name, independent of its compound stream name.

`public OfficeVbaModuleKind Kind { get; }` [#](#property-kind)

[OfficeVbaModels.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Documents/Vba/OfficeVbaModels.cs#L24)

Gets the module's persistence role.

`public string Source { get; internal set; }` [#](#property-source)

[OfficeVbaModels.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Documents/Vba/OfficeVbaModels.cs#L26)

Gets the complete source, including the persisted Attribute lines.

<!-- PowerForge markdown artifact sha256:3284F5B034EE924C5513D4FC19E5221CDC552348AD0DE45B7398F59757075CA0 -->
