FieldMergeField

FieldMergeField

Overview

FieldMergeField is a class in Aspose.Words FOSS for .NET. Inherits from: Field, IFieldCodeTokenInfoProvider.

Implements the MERGEFIELD field.

This class provides 4 methods for working with FieldMergeField objects in .NET programs. Available methods include: GetFieldCode, Remove, Unlink, Update. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: DisplayResult, End, FieldName, FieldNameNoPrefix, Format, IsDirty, and 10 more.

Properties

NameTypeAccessDescription
TypeFieldTypeReadGets the Microsoft Word field type.
FieldNameNoPrefixstringReadReturns just the name of the data field.
FieldNamestringRead/WriteGets or sets the name of a data field.
TextBeforestringRead/WriteGets or sets the text to be inserted before the field if the field is not blank.
TextAfterstringRead/WriteGets or sets the text to be inserted after the field if the field is not blank.
IsMappedboolRead/WriteGets or sets whether this field is a mapped field.
IsVerticalFormattingboolRead/WriteGets or sets whether to enable character conversion for vertical formatting.
StartFieldStartReadGets the node that represents the start of the field.
SeparatorFieldSeparatorReadGets the node that represents the field separator.
EndFieldEndReadGets the node that represents the field end.
ResultstringRead/WriteGets or sets text that is between the field separator and field end.
DisplayResultstringReadGets the text that represents the displayed field result.
IsLockedboolRead/WriteGets or sets whether the field is locked (should not recalculate its result).
IsDirtyboolRead/WriteGets or sets whether the current result of the field is no longer correct (stale) due to other modifications made to the document.
FormatFieldFormatReadGets a FieldFormat object that provides typed access to field’s formatting.
LocaleIdintRead/WriteGets or sets the LCID of the field.

Methods

SignatureDescription
GetFieldCode()Returns text between field start and field separator (or field end if there is no separator).
Remove()Removes the field from the document.
Update()Performs the field update.
Unlink()Performs the field unlink.

See Also