
## add(self, name, value) {#System.String-System.String}

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


### Returns 


The newly created property object.


```python

def add(self, name, value):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| name | System.String | The name of the property. |
| value | System.String | The value of the property. |


## add(self, name, value) {#System.String-int}

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


### Returns 


The newly created property object.


```python

def add(self, name, value):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| name | System.String | The name of the property. |
| value | int | The value of the property. |


## add(self, name, value) {#System.String-System.DateTime}

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


### Returns 


The newly created property object.


```python

def add(self, name, value):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| name | System.String | The name of the property. |
| value | System.DateTime | The value of the property. |


## add(self, name, value) {#System.String-bool}

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


### Returns 


The newly created property object.


```python

def add(self, name, value):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| name | System.String | The name of the property. |
| value | bool | The value of the property. |


## add(self, name, value) {#System.String-float}

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


### Returns 


The newly created property object.


```python

def add(self, name, value):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| name | System.String | The name of the property. |
| value | float | The value of the property. |



### See Also
* module [`aspose.cells.properties`](../../)
* class [`CustomDocumentPropertyCollection`](/cells/python-net/aspose.cells.properties/customdocumentpropertycollection)
* class [`DocumentProperty`](/cells/python-net/aspose.cells.properties/documentproperty)
