Aspose::Words::Range::UnlinkFields method
Range::UnlinkFields method
Unlinks fields in this range.
void Aspose::Words::Range::UnlinkFields()
Remarks
Replaces all the fields in this range with their most recent results.
To unlink fields in the whole document use UnlinkFields.
Examples
Shows how to unlink all fields in a range.
auto doc = MakeObject<Document>(MyDir + u"Linked fields.docx");
auto newSection = System::ExplicitCast<Section>(doc->get_Sections()->idx_get(0)->Clone(true));
doc->get_Sections()->Add(newSection);
doc->get_Sections()->idx_get(1)->get_Range()->UnlinkFields();
See Also
- Class Range
- Namespace Aspose::Words
- Library Aspose.Words for C++