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}{signature:
}
Signature
vb.net
vb.net
Public Sub SetCustomProperty(ByVal key As String, ByVal value As Object)
{signature}
{parameters}
{param:key}A {{String}} that represents name of the property to set.{param}
{param:value}An {{Object}} that represents the value of the custom property specified.{param}
{remarks}MS Word equivalent: File menu > Properties > Custom tab

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


          '--- Set "Priority" Custom Property
          docProps.SetCustomProperty("Priority", "High")
        
{code} {example}