Compartilhar via


CustomProperties.Add Method

Adds custom property information. Returns a CustomProperty object.

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

Syntax

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

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

Parameters

  • Name
    Type: System.String

    Required String. The name of the custom property.

  • Value
    Type: System.Object

    Required Object. The value of the custom property.

Return Value

Type: Microsoft.Office.Interop.Excel.CustomProperty

See Also

Reference

CustomProperties Interface

CustomProperties Members

Microsoft.Office.Interop.Excel Namespace