Table of Contents

Method ToUri

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

ToUri(string, string?)

A link to an address, written as an external relationship of the link's part.

public static HyperlinkTarget ToUri(string uri, string? tooltip = null)

Parameters

uri string

The address: 1 to MaxUriLength characters, no control characters.

tooltip string

The tooltip, or null: at most MaxTooltipLength characters, no control characters.

Returns

HyperlinkTarget

The target.

Exceptions

ArgumentNullException

uri is null.

ArgumentException

A value is empty, too long or holds a control character.