C# Class TemplNET.TemplMatchHyperlink

Represents a hyperlink, located by matching a placeholder string in the scope of this hyperlink's Uri
Inheritance: TemplMatchText
Mostrar archivo Open project: CPonty/templ-dot-net Class Usage Examples

Public Properties

Property Type Description
Hyperlink Novacode.Hyperlink

Public Methods

Method Description
Find ( TemplRegex rxp, IEnumerable paragraphs ) : IEnumerable
Find ( TemplRegex rxp, Paragraph p ) : IEnumerable
Remove ( ) : void

Removes the matched Hyperlink from the document.

RemovePlaceholder ( ) : void

Removes the placeholder from the hyperlink's Url

SetText ( string text ) : TemplMatchHyperlink

Sets the Hyperlink's display text

SetUrl ( string url ) : TemplMatchHyperlink

Sets the Hyperlink's Url

Private Methods

Method Description
Find ( TemplRegex rxp, Paragraph p, Novacode.Hyperlink hl ) : IEnumerable
UrlString ( Novacode.Hyperlink hl ) : string

Method Details

Find() public static method

public static Find ( TemplRegex rxp, IEnumerable paragraphs ) : IEnumerable
rxp TemplRegex
paragraphs IEnumerable
return IEnumerable

Find() public static method

public static Find ( TemplRegex rxp, Paragraph p ) : IEnumerable
rxp TemplRegex
p Novacode.Paragraph
return IEnumerable

Remove() public method

Removes the matched Hyperlink from the document.
public Remove ( ) : void
return void

RemovePlaceholder() public method

Removes the placeholder from the hyperlink's Url
public RemovePlaceholder ( ) : void
return void

SetText() public method

Sets the Hyperlink's display text
public SetText ( string text ) : TemplMatchHyperlink
text string
return TemplMatchHyperlink

SetUrl() public method

Sets the Hyperlink's Url
public SetUrl ( string url ) : TemplMatchHyperlink
url string
return TemplMatchHyperlink

Property Details

Hyperlink public_oe property

public Hyperlink,Novacode Hyperlink
return Novacode.Hyperlink