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
Wiki Markup
{description}
{excerpt}Sets the specified custom property with a certain value.{excerpt}
{signature:C#}
 public void SetCustomProperty(System.String key, System.Object value)
{signature}{signature: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#}

          //--- Set "Priority" Custom Property
          docProps.SetCustomProperty("Priority", "High");
        {code}
{code:vb.net|title=vb.net}

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

{example}