[]
        
(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)
Public Function Add(name As String, value As Boolean) As DocumentProperty
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)
Public Function Add(name As String, value As Date) As DocumentProperty
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)
Public Function Add(name As String, value As Double) As DocumentProperty
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)
Public Function Add(name As String, value As Integer) As DocumentProperty
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)
Public Function Add(name As String, value As String) As DocumentProperty
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.