Share via


CustomProperties.Add Method

Returns a CustomProperty object that represents a custom property added to a smart tag.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function Add ( _
    Name As String, _
    Value As String _
) As CustomProperty
'Usage
Dim instance As CustomProperties
Dim Name As String
Dim Value As String
Dim returnValue As CustomProperty

returnValue = instance.Add(Name, Value)
CustomProperty Add(
    string Name,
    string Value
)

Parameters

  • Name
    Type: System.String
    Required String. The name of the custom smart tag property.
  • Value
    Type: System.String
    Required String. The value of the custom smart tag property.

Return Value

Type: Microsoft.Office.Interop.Word.CustomProperty

See Also

Reference

CustomProperties Interface

CustomProperties Members

Microsoft.Office.Interop.Word Namespace