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
urlUri- The Uri representing the link's destination.
linkTextHandlerAction<MarkupWriter> optional- The action to write the text of the link, or
nullto 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
Exceptions
- ArgumentNullException
- Thrown when
urlisnull.
