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 value of the specified property.

Signature
C#
C#
 public void SetProperty(System.String propertyName, System.Object propertyValue)
Signature
vb.net
vb.net
Public Sub SetProperty(ByVal propertyName As String, ByVal propertyValue As Object)
Parameters
Param
propertyName
propertyName

A String representing the name of the property to set.

Param
propertyValue
propertyValue

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#

          //--- Set "Priority" Property
          docProps.SetProperty("Priority", "high");
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Set "Priority" Property
          docProps.SetProperty("Priority", "high")