[]
        
(Showing Draft Content)

C1.C1Preview.ParagraphObjectCollection.AddHyperlink

AddHyperlink Method

Adds a text hyperlink to the current paragraph content.

Declaration
public ParagraphText AddHyperlink(string text, string anchorName)
Parameters
Type Name Description
string text

The text string to add.

string anchorName

The name of the anchor which is the target of the hyperlink.

Returns
Type Description
ParagraphText

A ParagraphText object representing the specified text string, associated with the specified hyperlink.

This method creates a ParagraphText, initializes it with the specified text, sets the Hyperlink on that object to a C1Hyperlink initialized with anchorName, and adds it to the current collection.

Adds a text hyperlink with a specified style to the current paragraph content.

Declaration
public ParagraphText AddHyperlink(string text, string anchorName, Style style)
Parameters
Type Name Description
string text

The text string to add.

string anchorName

The name of the anchor which is the target of the hyperlink.

Style style

A style used to render the string.

Returns
Type Description
ParagraphText

A ParagraphText object representing the specified text string, associated with the specified hyperlink.

This method creates a ParagraphText, initializes it with the specified text and style, sets the Hyperlink on that object to a C1Hyperlink initialized with anchorName, and adds it to the current collection.

Adds a text hyperlink to the current paragraph content.

Declaration
public ParagraphText AddHyperlink(string text, C1LinkTarget target)
Parameters
Type Name Description
string text

The text string to add.

C1LinkTarget target

A C1LinkTarget which is the target of the hyperlink.

Returns
Type Description
ParagraphText

A ParagraphText object representing the specified text string, associated with the specified hyperlink.

This method creates a ParagraphText, initializes it with the specified text, sets the Hyperlink on that object to a C1Hyperlink initialized with target, and adds it to the current collection.

Adds a text hyperlink with a specified style to the current paragraph content.

Declaration
public ParagraphText AddHyperlink(string text, C1LinkTarget target, Style style)
Parameters
Type Name Description
string text

The text string to add.

C1LinkTarget target

A C1LinkTarget which is the target of the hyperlink.

Style style

A style used to render the string.

Returns
Type Description
ParagraphText

A ParagraphText object representing the specified text string, associated with the specified hyperlink.

This method creates a ParagraphText, initializes it with the specified text and style, sets the Hyperlink on that object to a C1Hyperlink initialized with target, and adds it to the current collection.

Adds a text hyperlink to the current paragraph content.

Declaration
public ParagraphText AddHyperlink(string text, RenderObject renderObject)
Parameters
Type Name Description
string text

The text string to add.

RenderObject renderObject

A RenderObject which is the target of the hyperlink.

Returns
Type Description
ParagraphText

A ParagraphText object representing the specified text string, associated with the specified hyperlink.

This method creates a ParagraphText, initializes it with the specified text, sets the Hyperlink on that object to a C1Hyperlink initialized with renderObject, and adds it to the current collection.

Adds a text hyperlink to the current paragraph content.

Declaration
public ParagraphText AddHyperlink(string text, ParagraphObject paragraphObject)
Parameters
Type Name Description
string text

The text string to add.

ParagraphObject paragraphObject

A ParagraphObject which is the target of the hyperlink.

Returns
Type Description
ParagraphText

A ParagraphText object representing the specified text string, associated with the specified hyperlink.

This method creates a ParagraphText, initializes it with the specified text, sets the Hyperlink on that object to a C1Hyperlink initialized with paragraphObject, and adds it to the current collection.

Adds an image hyperlink to the current paragraph content.

Declaration
public ParagraphImage AddHyperlink(Image image, string anchorName)
Parameters
Type Name Description
Image image

The image to add.

string anchorName

The name of the anchor which is the target of the hyperlink.

Returns
Type Description
ParagraphImage

A ParagraphImage object representing the specified image, associated with the specified hyperlink.

This method creates a ParagraphImage, initializes it with the specified image, sets the Hyperlink on that object to a C1Hyperlink initialized with anchorName, and adds it to the current collection.

Adds an image hyperlink to the current paragraph content.

Declaration
public ParagraphImage AddHyperlink(Image image, C1LinkTarget target)
Parameters
Type Name Description
Image image

The image to add.

C1LinkTarget target

A C1LinkTarget which is the target of the hyperlink.

Returns
Type Description
ParagraphImage

A ParagraphImage object representing the specified image, associated with the specified hyperlink.

This method creates a ParagraphImage, initializes it with the specified image, sets the Hyperlink on that object to a C1Hyperlink initialized with target, and adds it to the current collection.

Adds an image hyperlink to the current paragraph content.

Declaration
public ParagraphImage AddHyperlink(Image image, RenderObject renderObject)
Parameters
Type Name Description
Image image

The image to add.

RenderObject renderObject

A RenderObject which is the target of the hyperlink.

Returns
Type Description
ParagraphImage

A ParagraphImage object representing the specified image, associated with the specified hyperlink.

This method creates a ParagraphImage, initializes it with the specified image, sets the Hyperlink on that object to a C1Hyperlink initialized with renderObject, and adds it to the current collection.

Adds an image hyperlink to the current paragraph content.

Declaration
public ParagraphImage AddHyperlink(Image image, ParagraphObject paragraphObject)
Parameters
Type Name Description
Image image

The image to add.

ParagraphObject paragraphObject

A ParagraphObject which is the target of the hyperlink.

Returns
Type Description
ParagraphImage

A ParagraphImage object representing the specified image, associated with the specified hyperlink.

This method creates a ParagraphImage, initializes it with the specified image, sets the Hyperlink on that object to a C1Hyperlink initialized with paragraphObject, and adds it to the current collection.