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


Creates a new custom document property which links to content.

```cpp
DocumentProperty Aspose::Cells::Properties::CustomDocumentPropertyCollection::AddLinkToContent(const U16String &name, const U16String &source)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const U16String\& | The name of the property. |
| source | const U16String\& | The source of the property. It should be the name of named range. |

## 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::AddLinkToContent(const char16_t*, const char16_t*) method


Creates a new custom document property which links to content.

```cpp
DocumentProperty Aspose::Cells::Properties::CustomDocumentPropertyCollection::AddLinkToContent(const char16_t *name, const char16_t *source)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const char16_t* | The name of the property. |
| source | const char16_t* | The source of the property. It should be the name of named range. |

## 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++](../../../)
