This documentation is archived and is not being maintained.

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)

'Usage
Dim Name As String
Dim Value As Object
Dim returnValue As CustomProperty
Dim customProperties1 As CustomProperties
returnValue = customProperties1.Add(Name, Value)

CustomProperty Add(
	[In] string Name, 
	[In] object Value
);
public CustomProperty Add(
	/*in*/System.String Name, 
	/*in*/System.Object Value
);
function Add(
	 Name : String, 
	 Value : Object
) : CustomProperty;

Parameters

Name

Required String. The name of the custom property.

Value

Required Object. The value of the custom property.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Show: