Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

Sets the specified custom property with a certain value.

Signature
C#
C#
 public void SetCustomProperty(System.String key, System.Object value)
Signature
vb.net
vb.net
Public Sub SetCustomProperty(ByVal key As String, ByVal value As Object)
Parameters
Param
key
key

A String that represents name of the property to set.

Param
value
value

An Object that represents the value of the custom property specified.

Remarks

MS Word equivalent: File menu > Properties > Custom tab

Example
Code Block
csharp
csharp
titleC#

          //--- Set "Priority" Custom Property
          docProps.SetCustomProperty("Priority", "High");
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Set "Priority" Custom Property
          docProps.SetCustomProperty("Priority", "High")