DocumentSetCustomProperty Method | |
Write a custom document property
Namespace:
SIC.OpenDocumentFormat.MSWord
Assembly:
SIC.OpenDocumentFormat (in SIC.OpenDocumentFormat.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax public void SetCustomProperty(
string pName,
Object pValue,
PropertyType pType
)
Public Sub SetCustomProperty (
pName As String,
pValue As Object,
pType As PropertyType
)
Parameters
- pName
- Type: SystemString
Name of property - pValue
- Type: SystemObject
Value of property - pType
- Type: SIC.OpenDocumentFormat.MSWordPropertyType
Type of property
Remarks
If exists property then overwrite this.
Open XML example property name Language and value DE
<op:property fmtid="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}" pid="2" name="Language">
<vt:lpwstr>DE</vt:lpwstr>
</op:property>
See Also