GH_HtmlFormatter

References
public class GH_HtmlFormatter

Constructors

GH_HtmlFormatter

#
public GH_HtmlFormatter()

GH_HtmlFormatter

#
public GH_HtmlFormatter(
nSource,
nTitle,
nDescription
)

GH_HtmlFormatter

#
public GH_HtmlFormatter()

GH_HtmlFormatter

#
public GH_HtmlFormatter()

Fields

m_description

#
protected string m_description

m_remarks

#
protected List<GH_HtmlRemark> m_remarks

m_source

#
protected IGH_InstanceDescription m_source

m_title

#
protected string m_title

Properties

ContactURI

#
Gets or sets the Contact URI (name@domain.com) for this html page. The Contact details are displayed beneath the Webpage URI. If Null or String.Empty, no contact details are displayed.
public string ContactURI { get; set; }

Description

#
Gets or sets the description of this html page The description is displayed directly beneath the title
public string Description { get; set; }

Remarks

#
Gets the list of remarks. Remarks are displayed as a bullet list underneath the contact details
public List<GH_HtmlRemark> Remarks { get; }

Title

#
Gets or sets the title of this html page The title is displayed along the top of the document.
public string Title { get; set; }

WebPageURI

#
Gets or sets the Webpage URI (email address) for this html page The Webpage details are displayed beneath the Description section If Null or String.Empty, no webpage details are displayed
public string WebPageURI { get; set; }

Methods

AddRemark

#
Adds a remark to the list. Remarks are displayed underneath the contact details
public void AddRemark(
text,
The text of the remark
forecolour = GH_HtmlFormatterPalette.Black,
The foreground colour of the remark string
backcolour = GH_HtmlFormatterPalette.White
The background colour of the remark string
)

HtmlFormat

#
Converts all the items in this formatter into a single HTML formatted string
public string HtmlFormat()

HtmlPaletteTag

#
public static string HtmlPaletteTag()

ReplaceBoxDrawingCodes

#
Replaces Box Drawing chars from a string with HTML codes for those chars. Tildes are replaced with Non-Breaking spaces.
public static string ReplaceBoxDrawingCodes(
source
)

ReplaceSpecialCharCodes

#
Replaces special chars (© ® ™ ² ³ ×) from a string with HTML codes for those chars.
public static string ReplaceSpecialCharCodes(
source
)