FieldRef

Overview

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

Implements the REF field.

This class provides 4 methods for working with FieldRef 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: BookmarkName, DisplayResult, End, Format, IncludeNoteOrComment, InsertHyperlink, and 13 more.

Properties

NameTypeAccessDescription
BookmarkNamestringRead/WriteGets or sets the referenced bookmark’s name.
NumberSeparatorstringRead/WriteGets or sets the character sequence that is used to separate sequence numbers and page numbers.
IncludeNoteOrCommentboolRead/WriteGets or sets whether to increment footnote, endnote, and annotation numbers that are marked by the bookmark, and insert the corresponding footnote, endnote, and comment text.
InsertHyperlinkboolRead/WriteGets or sets whether to create a hyperlink to the bookmarked paragraph.
InsertParagraphNumberboolRead/WriteGets or sets whether to insert the paragraph number of the referenced paragraph exactly as it appears in the document.
InsertRelativePositionboolRead/WriteGets or sets whether to insert the relative position of the referenced paragraph.
InsertParagraphNumberInRelativeContextboolRead/WriteGets or sets whether to insert the paragraph number of the referenced paragraph in relative context.
SuppressNonDelimitersboolRead/WriteGets or sets whether to suppress non-delimiter characters.
InsertParagraphNumberInFullContextboolRead/WriteGets or sets whether to insert the paragraph number of the referenced paragraph in full context.
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.
TypeFieldTypeReadGets the Microsoft Word field type.
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