## CustomDocumentPropertyCollection::Add(const U16String\&, const U16String\&) method


Creates a new custom document property of the **[PropertyType.String](../../propertytype/)** data type.

```cpp
DocumentProperty Aspose::Cells::Properties::CustomDocumentPropertyCollection::Add(const U16String &name, const U16String &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const U16String\& | The name of the property. |
| value | const U16String\& | The value of the property. |

## ReturnValue

The newly created property object.
## Remarks


<overloads>Creates a new custom document property.</overloads>

## See Also

* Class [DocumentProperty](../../documentproperty/)
* Class [Vector](../../../aspose.cells/vector/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [CustomDocumentPropertyCollection](../)
* Namespace [Aspose::Cells::Properties](../../)
* Library [Aspose.Cells for C++](../../../)
## CustomDocumentPropertyCollection::Add(const char16_t*, const char16_t*) method


Creates a new custom document property of the **[PropertyType.String](../../propertytype/)** data type.

```cpp
DocumentProperty Aspose::Cells::Properties::CustomDocumentPropertyCollection::Add(const char16_t *name, const char16_t *value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const char16_t* | The name of the property. |
| value | const char16_t* | The value of the property. |

## ReturnValue

The newly created property object.
## Remarks


<overloads>Creates a new custom document property.</overloads>

## See Also

* Class [DocumentProperty](../../documentproperty/)
* Class [Vector](../../../aspose.cells/vector/)
* Class [CustomDocumentPropertyCollection](../)
* Namespace [Aspose::Cells::Properties](../../)
* Library [Aspose.Cells for C++](../../../)
## CustomDocumentPropertyCollection::Add(const U16String\&, int32_t) method


Creates a new custom document property of the **[PropertyType.Number](../../propertytype/)** data type.

```cpp
DocumentProperty Aspose::Cells::Properties::CustomDocumentPropertyCollection::Add(const U16String &name, int32_t value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const U16String\& | The name of the property. |
| value | int32_t | The value of the property. |

## ReturnValue

The newly created property object.

## See Also

* Class [DocumentProperty](../../documentproperty/)
* Class [Vector](../../../aspose.cells/vector/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [CustomDocumentPropertyCollection](../)
* Namespace [Aspose::Cells::Properties](../../)
* Library [Aspose.Cells for C++](../../../)
## CustomDocumentPropertyCollection::Add(const char16_t*, int32_t) method


Creates a new custom document property of the **[PropertyType.Number](../../propertytype/)** data type.

```cpp
DocumentProperty Aspose::Cells::Properties::CustomDocumentPropertyCollection::Add(const char16_t *name, int32_t value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const char16_t* | The name of the property. |
| value | int32_t | The value of the property. |

## ReturnValue

The newly created property object.

## See Also

* Class [DocumentProperty](../../documentproperty/)
* Class [Vector](../../../aspose.cells/vector/)
* Class [CustomDocumentPropertyCollection](../)
* Namespace [Aspose::Cells::Properties](../../)
* Library [Aspose.Cells for C++](../../../)
## CustomDocumentPropertyCollection::Add(const U16String\&, const Date\&) method


Creates a new custom document property of the **[PropertyType.DateTime](../../propertytype/)** data type.

```cpp
DocumentProperty Aspose::Cells::Properties::CustomDocumentPropertyCollection::Add(const U16String &name, const Date &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const U16String\& | The name of the property. |
| value | const Date\& | The value of the property. |

## ReturnValue

The newly created property object.

## See Also

* Class [DocumentProperty](../../documentproperty/)
* Class [Vector](../../../aspose.cells/vector/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [CustomDocumentPropertyCollection](../)
* Namespace [Aspose::Cells::Properties](../../)
* Library [Aspose.Cells for C++](../../../)
## CustomDocumentPropertyCollection::Add(const char16_t*, const Date\&) method


Creates a new custom document property of the **[PropertyType.DateTime](../../propertytype/)** data type.

```cpp
DocumentProperty Aspose::Cells::Properties::CustomDocumentPropertyCollection::Add(const char16_t *name, const Date &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const char16_t* | The name of the property. |
| value | const Date\& | The value of the property. |

## ReturnValue

The newly created property object.

## See Also

* Class [DocumentProperty](../../documentproperty/)
* Class [Vector](../../../aspose.cells/vector/)
* Class [CustomDocumentPropertyCollection](../)
* Namespace [Aspose::Cells::Properties](../../)
* Library [Aspose.Cells for C++](../../../)
## CustomDocumentPropertyCollection::Add(const U16String\&, bool) method


Creates a new custom document property of the **[PropertyType.Boolean](../../propertytype/)** data type.

```cpp
DocumentProperty Aspose::Cells::Properties::CustomDocumentPropertyCollection::Add(const U16String &name, bool value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const U16String\& | The name of the property. |
| value | bool | The value of the property. |

## ReturnValue

The newly created property object.

## See Also

* Class [DocumentProperty](../../documentproperty/)
* Class [Vector](../../../aspose.cells/vector/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [CustomDocumentPropertyCollection](../)
* Namespace [Aspose::Cells::Properties](../../)
* Library [Aspose.Cells for C++](../../../)
## CustomDocumentPropertyCollection::Add(const char16_t*, bool) method


Creates a new custom document property of the **[PropertyType.Boolean](../../propertytype/)** data type.

```cpp
DocumentProperty Aspose::Cells::Properties::CustomDocumentPropertyCollection::Add(const char16_t *name, bool value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const char16_t* | The name of the property. |
| value | bool | The value of the property. |

## ReturnValue

The newly created property object.

## See Also

* Class [DocumentProperty](../../documentproperty/)
* Class [Vector](../../../aspose.cells/vector/)
* Class [CustomDocumentPropertyCollection](../)
* Namespace [Aspose::Cells::Properties](../../)
* Library [Aspose.Cells for C++](../../../)
## CustomDocumentPropertyCollection::Add(const U16String\&, double) method


Creates a new custom document property of the **PropertyType.Float** data type.

```cpp
DocumentProperty Aspose::Cells::Properties::CustomDocumentPropertyCollection::Add(const U16String &name, double value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const U16String\& | The name of the property. |
| value | double | The value of the property. |

## ReturnValue

The newly created property object.

## See Also

* Class [DocumentProperty](../../documentproperty/)
* Class [Vector](../../../aspose.cells/vector/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [CustomDocumentPropertyCollection](../)
* Namespace [Aspose::Cells::Properties](../../)
* Library [Aspose.Cells for C++](../../../)
## CustomDocumentPropertyCollection::Add(const char16_t*, double) method


Creates a new custom document property of the **PropertyType.Float** data type.

```cpp
DocumentProperty Aspose::Cells::Properties::CustomDocumentPropertyCollection::Add(const char16_t *name, double value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const char16_t* | The name of the property. |
| value | double | The value of the property. |

## ReturnValue

The newly created property object.

## See Also

* Class [DocumentProperty](../../documentproperty/)
* Class [Vector](../../../aspose.cells/vector/)
* Class [CustomDocumentPropertyCollection](../)
* Namespace [Aspose::Cells::Properties](../../)
* Library [Aspose.Cells for C++](../../../)
