SharpLeaf Reference > SharpLeaf Methods > AddHtml Method

SharpLeaf.AddHtml Method

Append text with simple HTML tags to the current paragraph.

public void AddHtml(
    string text
);
text
HTML-tagged string.

Example

   lf.AddHtml("What a <b>bold</b> statement&#x2026;");

Description

Supported tags are : <b> <i> <u> <strike> <sup> <sub> <pre> <code> <a> <br> <p> <hr> <ul> <ol> <li>.

Unsupported combinations are : <a>, <sup> or <sub> within <sup> or <sub>.

Invalid tags are trimmed off.

Tag modifications are not retained on exit – AddHtml does not modify the current ParagraphStyle.

See also ...

SharpLeaf Members


Send comments on this topic
© Dyalog Ltd 2021