MarkupWriter.WriteLink Method

Namespace
Kampute.DocToolkit.IO.Writers
Assembly
  • Kampute.DocToolkit.dll
MarkupWriter.WriteLink(Uri, Action<MarkupWriter>)Writes a hyperlink in the format of the target document using an optional delegate to write the link's text.
MarkupWriter.WriteLink(Uri, string)Writes a hyperlink with the specified text in the format of the target document.

MarkupWriter.WriteLink(Uri, Action<MarkupWriter>)

Writes a hyperlink in the format of the target document using an optional delegate to write the link's text.
public abstract void WriteLink(Uri url, Action<MarkupWriter> linkTextHandler = null)

Parameters

url Uri
The Uri representing the link's destination.
linkTextHandler Action<MarkupWriter> optional
The action to write the text of the link, or null to use the URL as the text.

MarkupWriter.WriteLink(Uri, string)

Writes a hyperlink with the specified text in the format of the target document.
public void WriteLink(Uri url, string text)

Parameters

url Uri
The Uri representing the link's destination.
text string
The text of the link.

Exceptions

ArgumentNullException
Thrown when url is null.