## Document::UnlinkFields method


Unlinks fields in the whole document.

```cpp
void Aspose::Words::Document::UnlinkFields()
```

## Remarks


Replaces all the fields in the whole document with their most recent results.

To unlink fields in a specific part of the document use [UnlinkFields](../../range/unlinkfields/).

## Examples



Shows how to unlink all fields in the document. 
```cpp
auto doc = System::MakeObject<Aspose::Words::Document>(System::String(get_MyDir() + u"Linked fields.docx"));

doc->UnlinkFields();
```

## See Also

* Class [Document](../)
* Namespace [Aspose::Words](../../)
* Library [Aspose.Words for C++](../../../)
