OfficeIMO

API Reference

Class

WordCustomProperties

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word

Provides access to custom document properties stored within a Word document.

Inheritance

  • Object
  • WordCustomProperties

Constructors

public WordCustomProperties(WordDocument document, Nullable<Boolean> create = null) #

Initializes a new instance of the WordCustomProperties class.

Parameters

document OfficeIMO.Word.WordDocument requiredposition: 0
The parent document.
create System.Nullable{System.Boolean} = null optionalposition: 1
When set to true, the custom properties part will be created if missing.

Methods

public CustomDocumentProperty Add(String name, Object value, PropertyTypes propertyType) #
Returns: CustomDocumentProperty

Adds a custom property to the document.

Parameters

name System.String requiredposition: 0
Name of the property.
value System.Object requiredposition: 1
Value to assign.
propertyType OfficeIMO.Word.PropertyTypes requiredposition: 2
Type of the value.

Returns

The created CustomDocumentProperty.