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

Returns an Object that represents the value of the custom property specified.

Signature
C#
C#
 public System.Object GetCustomProperty(System.String key)
Signature
vb.net
vb.net
Public Function GetCustomProperty(ByVal key As String) As Object
Parameters
Param
key
key

The name of the property to retrieve.

Returns

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

Remarks

MS Word equivalent: File menu > Properties > Custom tab > Properties:

Example
Code Block
csharp
csharp
titleC#

          //--- Return "Priority" Custom Property
          string priority = docProps.GetCustomProperty("Priority");
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Return "Priority" Custom Property
          Dim priority As String = docProps.GetCustomProperty("Priority")