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

{remarks}
{example}{code:csharp|title=C#}
Parameters
Param
property
property

A DocumentProperties.BuiltInProperty object that represents the built-in 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 "Author" Property
          docProps.SetProperty(DocumentProperties.BuiltInProperty.Author, "Fred Jones");
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


          '--- Set "Priority" Property
          docProps.SetProperty(DocumentProperties.BuiltInProperty.Author, "Fred Jones")
        
{code} {example}