FieldUnlink Method

Performs the field unlink.

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

Syntax

public bool Unlink()

Return Value

Type: Boolean
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 specific field.
Document doc = new Document(MyDir + "Linked fields.docx");
doc.Range.Fields[1].Unlink();

See Also