Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordMacroProject

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

A VBA project attached to a Word document. Reading it never executes macro code.

Inheritance

  • object
  • WordMacroProject

Usage

Explore 1 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 1

Methods

public void Remove() #

Removes this project from its document.

public void Save(string path, long maximumBytes = 67108864) #

Saves the attached project bytes to a file.

Parameters

path string required
maximumBytes long = 67108864 optional
public byte[] ToBytes(long maximumBytes = 67108864) #

Reads the attached project bytes subject to the specified maximum size.

Parameters

maximumBytes long = 67108864 optional

Returns

byte[]

Properties

public WordDocument Document { get; } #

Gets the owning document.

public string PartUri { get; } #

Gets the attached project's package URI.

public IReadOnlyList<WordMacro> Modules { get; } #

Gets the project's standard, class and host modules.