Class Project
Represents the VBA project hosted by a workbook.
Inherited Members
Namespace: DRIT.Spreadsheet.Vba
Assembly: DRIT.Spreadsheet.dll
Syntax
public class Project
Remarks
The project vocabulary is shared across products; the workbook host owns the project stream and controls how it is preserved during save operations.
Constructors
Project(string)
Initializes a new Project for the supplied workbook data.
Declaration
public Project(string defaultDocumentModuleName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | defaultDocumentModuleName |
Remarks
The project vocabulary is shared across products; the workbook host owns the project stream and controls how it is preserved during save operations.
Properties
CodePage
Codepage for encoding. Default is current regional setting.
Declaration
public int CodePage { get; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
The project vocabulary is shared across products; the workbook host owns the project stream and controls how it is preserved during save operations.
Constants
Conditional compilation constants
Declaration
public string Constants { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
The project vocabulary is shared across products; the workbook host owns the project stream and controls how it is preserved during save operations.
Description
A description of the project
Declaration
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
The project vocabulary is shared across products; the workbook host owns the project stream and controls how it is preserved during save operations.
HelpContextID
Context if refering the helpfile
Declaration
public int HelpContextID { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
The project vocabulary is shared across products; the workbook host owns the project stream and controls how it is preserved during save operations.
HelpFile1
A helpfile
Declaration
public string HelpFile1 { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
The project vocabulary is shared across products; the workbook host owns the project stream and controls how it is preserved during save operations.
HelpFile2
Secondary helpfile
Declaration
public string HelpFile2 { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
The project vocabulary is shared across products; the workbook host owns the project stream and controls how it is preserved during save operations.
Modules
Code Modules (Modules, classes, designer code)
Declaration
public ModuleCollection Modules { get; set; }
Property Value
| Type | Description |
|---|---|
| ModuleCollection |
Remarks
The project vocabulary is shared across products; the workbook host owns the project stream and controls how it is preserved during save operations.
Name
Name of the project
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
The project vocabulary is shared across products; the workbook host owns the project stream and controls how it is preserved during save operations.
Protection
VBA protection
Declaration
public ProtectionState Protection { get; }
Property Value
| Type | Description |
|---|---|
| ProtectionState |
Remarks
The project vocabulary is shared across products; the workbook host owns the project stream and controls how it is preserved during save operations.
References
Project references
Declaration
public ReferenceCollection References { get; set; }
Property Value
| Type | Description |
|---|---|
| ReferenceCollection |
Remarks
The project vocabulary is shared across products; the workbook host owns the project stream and controls how it is preserved during save operations.
Signature
The digital signature
Declaration
public VbaSignature Signature { get; }
Property Value
| Type | Description |
|---|---|
| VbaSignature |
Remarks
The project vocabulary is shared across products; the workbook host owns the project stream and controls how it is preserved during save operations.
SystemKind
System kind. Default Win32.
Declaration
public SysKind SystemKind { get; set; }
Property Value
| Type | Description |
|---|---|
| SysKind |
Remarks
The project vocabulary is shared across products; the workbook host owns the project stream and controls how it is preserved during save operations.