FieldHyperlink

FieldHyperlink

Overview

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

Implements the HYPERLINK field To learn more, visit the Working with Fields documentation article.

This class provides 4 methods for working with FieldHyperlink 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: Address, DisplayResult, End, Format, IsDirty, IsImageMap, and 10 more.

Properties

NameTypeAccessDescription
TargetstringRead/WriteGets or sets the target to which the link should be redirected.
AddressstringRead/WriteGets or sets a location where this hyperlink jumps.
SubAddressstringRead/WriteGets or sets a location in the file, such as a bookmark, where this hyperlink jumps.
IsImageMapboolRead/WriteGets or sets whether to append coordinates to the hyperlink for a server-side image map.
OpenInNewWindowboolRead/WriteGets or sets whether to open the destination site in a new web browser window.
ScreenTipstringRead/WriteGets or sets the ScreenTip text for the hyperlink.
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