Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordHyperLinkFluent

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
static

The fluent methods of WordHyperLink, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • WordHyperLinkFluent

Methods

public static TSelf Anchor<TSelf>(TSelf wordHyperLink, string? value) #

Sets WordHyperLink.Anchor: Specifies the name of a bookmark within the document. See Bookmark. If the attribute is omitted, then the default behavior is to navigate to the start of the document. If the r:id attribute is specified, then the anchor attribute is ignored.

Type Parameters

TSelf

Parameters

wordHyperLink TSelf required
The instance.
value string? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property    // C# fluent
wordHyperLink.Anchor = value;    wordHyperLink.Anchor(value);
public static TSelf DocLocation<TSelf>(TSelf wordHyperLink, string? value) #

Sets WordHyperLink.DocLocation: Specifies a location in the target of the hyperlink, in the case in which the link is an external link.

Type Parameters

TSelf

Parameters

wordHyperLink TSelf required
The instance.
value string? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property         // C# fluent
wordHyperLink.DocLocation = value;    wordHyperLink.DocLocation(value);
public static TSelf History<TSelf>(TSelf wordHyperLink, bool value = true) #

Sets WordHyperLink.History: Gets or sets whether the hyperlink is marked as visited.

Type Parameters

TSelf

Parameters

wordHyperLink TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property     // C# fluent
wordHyperLink.History = value;    wordHyperLink.History(value);
public static TSelf Id<TSelf>(TSelf wordHyperLink, string? value) #

Sets WordHyperLink.Id: Gets or sets the hyperlink relationship's identifier.

Type Parameters

TSelf

Parameters

wordHyperLink TSelf required
The instance.
value string? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property    // C# fluent
wordHyperLink.Id = value;        wordHyperLink.Id(value);
public static TSelf Paragraph<TSelf>(TSelf wordHyperLink, Action<WordParagraph> configure) #

Configures WordHyperLink.Paragraph in place: Gets the paragraph containing this hyperlink.

Type Parameters

TSelf

Parameters

wordHyperLink TSelf required
The instance.
configure System.Action<OfficeIMO.Word.WordParagraph> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf TargetFrame<TSelf>(TSelf wordHyperLink, WordHyperlinkTargetFrame? value) #

Sets WordHyperLink.TargetFrame: Gets or sets the target frame for the hyperlink.

Type Parameters

TSelf

Parameters

wordHyperLink TSelf required
The instance.
value OfficeIMO.Word.WordHyperlinkTargetFrame? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property         // C# fluent
wordHyperLink.TargetFrame = value;    wordHyperLink.TargetFrame(value);
public static TSelf Text<TSelf>(TSelf wordHyperLink, string value) #

Sets WordHyperLink.Text: Gets or sets the display text for the hyperlink.

Type Parameters

TSelf

Parameters

wordHyperLink TSelf required
The instance.
value string required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property    // C# fluent
wordHyperLink.Text = value;      wordHyperLink.Text(value);
public static TSelf Tooltip<TSelf>(TSelf wordHyperLink, string? value) #

Sets WordHyperLink.Tooltip: Gets or sets the tooltip displayed when hovering over the hyperlink.

Type Parameters

TSelf

Parameters

wordHyperLink TSelf required
The instance.
value string? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property     // C# fluent
wordHyperLink.Tooltip = value;    wordHyperLink.Tooltip(value);
public static TSelf Uri<TSelf>(TSelf wordHyperLink, Uri? value) #

Sets WordHyperLink.Uri: Gets or sets the URI of the hyperlink.

Type Parameters

TSelf

Parameters

wordHyperLink TSelf required
The instance.
value System.Uri? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property    // C# fluent
wordHyperLink.Uri = value;       wordHyperLink.Uri(value);