[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ICustomDocumentPropertyCollection.Add

Add Method

Add(string, string)

Creates a new IDocumentProperty and adds it to the list of custom document properties that are available for the current IWorkbook.

Declaration
IDocumentProperty Add(string name, string value)
Function Add(name As String, value As String) As IDocumentProperty
Parameters
Type Name Description
string name

The new IDocumentProperty name.

string value

The value of the property.

Returns
Type Description
IDocumentProperty

The new IDocumentProperty.

Add(string, int)

Creates a new IDocumentProperty and adds it to the list of custom document properties that are available for the current IWorkbook.

Declaration
IDocumentProperty Add(string name, int value)
Function Add(name As String, value As Integer) As IDocumentProperty
Parameters
Type Name Description
string name

The new IDocumentProperty name.

int value

The value of the property.

Returns
Type Description
IDocumentProperty

The new IDocumentProperty.

Add(string, DateTime)

Creates a new IDocumentProperty and adds it to the list of custom document properties that are available for the current IWorkbook.

Declaration
IDocumentProperty Add(string name, DateTime value)
Function Add(name As String, value As Date) As IDocumentProperty
Parameters
Type Name Description
string name

The new IDocumentProperty name.

DateTime value

The value of the property.

Returns
Type Description
IDocumentProperty

The new IDocumentProperty.

Add(string, bool)

Creates a new IDocumentProperty and adds it to the list of custom document properties that are available for the current IWorkbook.

Declaration
IDocumentProperty Add(string name, bool value)
Function Add(name As String, value As Boolean) As IDocumentProperty
Parameters
Type Name Description
string name

The new IDocumentProperty name.

bool value

The value of the property.

Returns
Type Description
IDocumentProperty

The new IDocumentProperty.

Add(string, double)

Creates a new IDocumentProperty and adds it to the list of custom document properties that are available for the current IWorkbook.

Declaration
IDocumentProperty Add(string name, double value)
Function Add(name As String, value As Double) As IDocumentProperty
Parameters
Type Name Description
string name

The new IDocumentProperty name.

double value

The value of the property.

Returns
Type Description
IDocumentProperty

The new IDocumentProperty.