FieldUnlink Method

Performs the field unlink.

Namespace:  Aspose.Words.Fields
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 21.5.0

ExpandedSyntax

public bool Unlink()

Return Value

Type: Boolean
True if the field has been unlinked, otherwise false.

ExpandedRemarks

Replaces the field with its most recent result.

Some fields, such as XE (Index Entry) fields and SEQ (Sequence) fields, cannot be unlinked.

ExpandedExamples

Shows how to unlink a field.
Document doc = new Document(MyDir + "Linked fields.docx");
doc.Range.Fields[1].Unlink();

ExpandedSee Also