[]
        
(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)
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)
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)
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)
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)
Parameters
Type Name Description
string name

The new IDocumentProperty name.

double value

The value of the property.

Returns
Type Description
IDocumentProperty

The new IDocumentProperty.