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 property specified.

Signature
C#
C#
 public System.Object GetProperty(BuiltInProperty property)
Signature
vb.net
vb.net
Public Function GetProperty(ByVal [property] As BuiltInProperty) As Object
Parameters
Param
property
property

A BuiltInProperty object that represents the built-in property to set.

Returns

An Object that represents the value of the property specified.

Remarks

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

Example
Code Block
csharp
csharp
titleC#

          //--- Return "Author" Property
          string priority =
               (string)docProps.GetProperty(DocumentProperties.BuiltInProperty.Author);
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Return "Author" Property
          Dim priority As String = _
               docProps.GetProperty(DocumentProperties.BuiltInProperty.Author)