Skip to end of metadata
Go to start of metadata

Description

Sets the value of the specified property.

C#
 public void SetProperty(BuiltInProperty property, System.Object propertyValue)
vb.net
Public Sub SetProperty(ByVal [property] As BuiltInProperty, ByVal propertyValue As Object)

Parameters

property
A DocumentProperties.BuiltInProperty object that represents the built-in property to set.
propertyValue
An Object that represents the value of the property specified.

Remarks

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

Examples

C#

          //--- Set "Author" Property
          docProps.SetProperty(DocumentProperties.BuiltInProperty.Author, "Fred Jones");
        
vb.net

          '--- Set "Priority" Property
          docProps.SetProperty(DocumentProperties.BuiltInProperty.Author, "Fred Jones")
        
  • No labels