[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.CustomPropertyCollection.Add

Add Method

Add(string, bool)

Adds a document property of the Boolean data type into the collection.

Declaration
public DocumentProperty Add(string name, bool value)
Parameters
Type Name Description
string name

The name of the document property.

bool value

The value for the document property.

Returns
Type Description
DocumentProperty

A DocumentProperty object that represents the new property.

Add(string, DateTime)

Adds a document property of the DateTime data type into the collection.

Declaration
public DocumentProperty Add(string name, DateTime value)
Parameters
Type Name Description
string name

The name of the document property.

DateTime value

The value for the document property.

Returns
Type Description
DocumentProperty

A DocumentProperty object that represents the new property.

Add(string, double)

Adds a document property of the Double data type into the collection.

Declaration
public DocumentProperty Add(string name, double value)
Parameters
Type Name Description
string name

The name of the document property.

double value

The value for the document property.

Returns
Type Description
DocumentProperty

A DocumentProperty object that represents the new property.

Add(string, int)

Adds a document property of the Number data type into the collection.

Declaration
public DocumentProperty Add(string name, int value)
Parameters
Type Name Description
string name

The name of the document property.

int value

The value for the document property.

Returns
Type Description
DocumentProperty

A DocumentProperty object that represents the new property.

Add(string, string)

Adds a document property of the String data type into the collection.

Declaration
public DocumentProperty Add(string name, string value)
Parameters
Type Name Description
string name

The name of the document property.

string value

The value for the document property.

Returns
Type Description
DocumentProperty

A DocumentProperty object that represents the new property.