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}{signature:
}
Signature
vb.net
vb.net
Public Function GetProperty(ByVal [property] As BuiltInProperty) As Object
{signature}
{parameters}
{param:property}A [BuiltInProperty|DocumentProperties.BuiltInProperty] object that represents the built\-in property to set.{param}
{returns}An {{Object}} that represents the value of the property specified.{returns}
{remarks}MS Word equivalent: File menu > Properties > Custom tab > Properties:

{remarks}
{example}{code:csharp|title=C#}
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} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


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