FieldLink

Overview

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

Implements the LINK field.

This class provides 4 methods for working with FieldLink 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: AutoUpdate, DisplayResult, End, Format, FormatUpdateType, InsertAsBitmap, and 16 more.

Properties

NameTypeAccessDescription
ProgIdstringRead/WriteGets or sets the application type of the link information.
SourceFullNamestringRead/WriteGets or sets the name and location of the source file.
SourceItemstringRead/WriteGets or sets the portion of the source file that’s being linked.
AutoUpdateboolRead/WriteGets or sets whether to update this field automatically.
InsertAsBitmapboolRead/WriteGets or sets whether to insert the linked object as a bitmap.
IsLinkedboolRead/WriteGets or sets whether to reduce the file size by not storing graphics data with the document.
FormatUpdateTypestringRead/WriteGets or sets a way the linked object updates its formatting.
InsertAsHtmlboolRead/WriteGets or sets whether to insert the linked object as HTML format text.
InsertAsPictureboolRead/WriteGets or sets whether to insert the linked object as a picture.
InsertAsRtfboolRead/WriteGets or sets whether to insert the linked object in rich-text format (RTF).
InsertAsTextboolRead/WriteGets or sets whether to insert the linked object in text-only format.
InsertAsUnicodeboolRead/WriteGets or sets whether to insert the linked object as Unicode text.
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