API Reference
Class
WordCustomProperties
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
- The parent document.
- create System.Nullable{System.Boolean} = null
- When set to true, the custom properties part will be created if missing.
Methods
public CustomDocumentProperty Add(String name, Object value, PropertyTypes propertyType) #Returns:
CustomDocumentPropertyAdds a custom property to the document.
Parameters
- name System.String
- Name of the property.
- value System.Object
- Value to assign.
- propertyType OfficeIMO.Word.PropertyTypes
- Type of the value.
Returns
The created CustomDocumentProperty.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object