Contents
- Index
- Previous
- Next
CreateHyperlink method
Declaration
function CreateHyperlink(const href: WideString; const target: WideString = ''): Boolean;
Description
Creates a link by inserting <A> and </A> tags around the selection or at the insertion point. The name of the target URL must be passed in the href parameter.
You may use the second optional parameter to specify the target (e.g. '_blank').
Returns True on success. Returns False on failure, if the selection spans more than one cell in a table, includes a mixture of elements inside and outside a table, or includes a design-time control.