SpreadsheetGear 2023
Add Method (IDocumentProperties)


SpreadsheetGear Namespace > IDocumentProperties Interface : Add Method
The name of the new document property.
The value of the new document property which must be an instance of System.String with a length of 255 characters or less, System.DateTime on or after January 1st, 1901, System.Boolean, System.Int32, or a valid System.Double.
Adds a new custom document property with the specified value (System.String, System.DateTime, System.Boolean, System.Int32 or System.Double) to a workbook and returns a reference to it.
Syntax
'Declaration
 
Function Add( _
   ByVal name As System.String, _
   ByVal value As System.Object _
) As IDocumentProperty
'Usage
 
Dim instance As IDocumentProperties
Dim name As System.String
Dim value As System.Object
Dim value As IDocumentProperty
 
value = instance.Add(name, value)
IDocumentProperty Add( 
   System.string name,
   System.object value
)

Parameters

name
The name of the new document property.
value
The value of the new document property which must be an instance of System.String with a length of 255 characters or less, System.DateTime on or after January 1st, 1901, System.Boolean, System.Int32, or a valid System.Double.

Return Value

The added document property.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IDocumentProperties Interface
IDocumentProperties Members
Delete Method
Value Property
IBuiltinDocumentProperties Interface
valid
valid