[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.Hyperlink

Class Hyperlink

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Represents a hyperlink element in a body content.

public class Hyperlink : ContentObject, IBrowsable<Hyperlink>
Inheritance
object
Hyperlink
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

Gets or sets the address for the specified link. The address can be an e-mail address, an Internet address, or a file name.

public Uri Address { get; set; }

Property Value

System.Uri

Gets or sets the name of a bookmark in the current or linked document which shall be the target of this hyperlink.

public string Anchor { get; set; }

Property Value

string

Gets or sets a location in the target of the hyperlink.

public string Location { get; set; }

Property Value

string

Gets the next hyperlink.

public Hyperlink Next { get; }

Property Value

Hyperlink

Gets the previous hyperlink.

public Hyperlink Previous { get; }

Property Value

Hyperlink

Gets or sets the text that appears as a ScreenTip when the mouse pointer is positioned over the specified hyperlink.

public string ScreenTip { get; set; }

Property Value

string

Gets or sets the name of the frame or window in which you want to load the specified hyperlink.

public string Target { get; set; }

Property Value

string

Gets or sets whether the target of the parent hyperlink shall be added to a list of viewed hyperlinks when it is invoked.

public bool Viewed { get; set; }

Property Value

bool

Methods

Adds a BidirectionalOverride to the end of this hyperlink.

public BidirectionalOverride AddBidirectionalOverride()

Returns

BidirectionalOverride

The added BidirectionalOverride.

Adds a BidirectionalOverride to the end of this hyperlink.

public BidirectionalOverride AddBidirectionalOverride(BiDirection direction)

Parameters

direction BiDirection

BidirectionalOverride direction value.

Returns

BidirectionalOverride

The added BidirectionalOverride.

Adds a ComplexField to the end of this hyperlink.

public ComplexField AddComplexField(string code, string result)

Parameters

code string

The complex field code.

result string

The result text of the inserted field.

Returns

ComplexField

The added ComplexField.

Adds a ComplexField to the end of this hyperlink.

public ComplexField AddComplexField(string code)

Parameters

code string

The complex field code.

Returns

ComplexField

The added ComplexField.

Adds a ContentControl to the end of this hyperlink.

public ContentControl AddContentControl(ContentControlType type, bool fillContent = true)

Parameters

type ContentControlType

The new content control type.

fillContent bool

Whether to fill the new control content with default data.

Returns

ContentControl

The added ContentControl.

Adds a Endnote to the end of this hyperlink.

public Endnote AddEndnote(string text, char referenceCharacter, string referenceFontName)

Parameters

text string

The endnote text.

referenceCharacter char

The endnote reference symbol.

referenceFontName string

The endnote reference symbol font.

Returns

Endnote

The added Endnote.

Adds a Endnote to the end of this hyperlink.

public Endnote AddEndnote(string text, string reference)

Parameters

text string

The endnote text.

reference string

The endnote reference text.

Returns

Endnote

The added Endnote.

Adds a Endnote to the end of this hyperlink.

public Endnote AddEndnote(string text = null)

Parameters

text string

The endnote text.

Returns

Endnote

The added Endnote.

Adds a Footnote to the end of this hyperlink.

public Footnote AddFootnote(string text, char referenceCharacter, string referenceFontName)

Parameters

text string

The footnote text.

referenceCharacter char

The footnote reference symbol.

referenceFontName string

The footnote reference symbol font.

Returns

Footnote

The added Footnote.

Adds a Footnote to the end of this hyperlink.

public Footnote AddFootnote(string text, string reference)

Parameters

text string

The footnote text.

reference string

The footnote reference text.

Returns

Footnote

The added Footnote.

Adds a Footnote to the end of this hyperlink.

public Footnote AddFootnote(string text = null)

Parameters

text string

The footnote text.

Returns

Footnote

The added Footnote.

Adds a Hyperlink to the end of this hyperlink.

public Hyperlink AddHyperlink()

Returns

Hyperlink

The added Hyperlink.

Adds a Hyperlink to the end of this hyperlink.

public Hyperlink AddHyperlink(string anchor, string text, string screenTip = null, string target = null)

Parameters

anchor string

The name of a bookmark in the current document which shall be the target of this hyperlink.

text string

The display text of the specified hyperlink.

screenTip string

The text that appears as a ScreenTip when the mouse pointer is positioned over the specified hyperlink.

target string

The name of the frame or window in which you want to load the specified hyperlink.

Returns

Hyperlink

The added Hyperlink.

Adds a Hyperlink to the end of this hyperlink.

public Hyperlink AddHyperlink(Uri address, string anchor, string text, string screenTip = null, string target = null)

Parameters

address System.Uri

The address for the specified link. The address can be an e-mail address, an Internet address, or a file name.

anchor string

The name of a bookmark in the current document which shall be the target of this hyperlink.

text string

The display text of the specified hyperlink.

screenTip string

The text that appears as a ScreenTip when the mouse pointer is positioned over the specified hyperlink.

target string

The name of the frame or window in which you want to load the specified hyperlink.

Returns

Hyperlink

The added Hyperlink.

Adds an OMath to the end of this hyperlink.

public OMath AddOMath()

Returns

OMath

The added OMath.

Adds an OMath to the end of this hyperlink.

public OMath AddOMath(OMathBuiltInEquation equation)

Parameters

equation OMathBuiltInEquation

A built-in equation to fill the OMath.

Returns

OMath

The added OMath.

Adds an OMathParagraph to the end of this hyperlink.

public OMathParagraph AddOMathParagraph()

Returns

OMathParagraph

The added OMathParagraph.

Adds an OMathParagraph to the end of this hyperlink.

public OMathParagraph AddOMathParagraph(OMathBuiltInEquation equation)

Parameters

equation OMathBuiltInEquation

A built-in equation to fill the OMathParagraph.

Returns

OMathParagraph

The added OMathParagraph.

Adds a Run to the end of this hyperlink.

public Run AddRun()

Returns

Run

The added Run.

Adds a Run to the end of this hyperlink.

public Run AddRun(Style style)

Parameters

style Style

The run character or linked paragraph style.

Returns

Run

The added Run.

Adds a Run to the end of this hyperlink.

public Run AddRun(string text, Style style)

Parameters

text string

The text of the Run to insert.

style Style

The run character or linked paragraph style.

Returns

Run

The added Run.

Adds a Run to the end of this hyperlink.

public Run AddRun(string text)

Parameters

text string

The text of the Run to insert.

Returns

Run

The added Run.

Adds a SimpleField to the end of this hyperlink.

public SimpleField AddSimpleField(string code, string result)

Parameters

code string

The field code.

result string

The result text of the new field.

Returns

SimpleField

The added SimpleField.

Adds a SimpleField to the end of this hyperlink.

public SimpleField AddSimpleField(string code)

Parameters

code string

The field code.

Returns

SimpleField

The added SimpleField.