Aspose::Words::Fields::Field::Unlink method
Field::Unlink method
Performs the field unlink.
bool Aspose::Words::Fields::Field::Unlink()
ReturnValue
true if the field has been unlinked, otherwise false.
Remarks
Replaces the field with its most recent result.
Some fields, such as XE (Index Entry) fields and SEQ (Sequence) fields, cannot be unlinked.
Examples
Shows how to unlink a field.
auto doc = MakeObject<Document>(MyDir + u"Linked fields.docx");
doc->get_Range()->get_Fields()->idx_get(1)->Unlink();
See Also
- Class Field
- Namespace Aspose::Words::Fields
- Library Aspose.Words for C++