ClassTinyHTMLParsers
Definition
Namespace:Telerik.WinControls.TextPrimitiveUtils
Assembly:Telerik.WinControls.dll
Syntax:
public class TinyHTMLParsers
Inheritance: objectTinyHTMLParsers
Constructors
TinyHTMLParsers()
Declaration
public TinyHTMLParsers()
Properties
LinkClickedColor
Gets or sets the color used to display a visited hyperlink.
Declaration
public static Color LinkClickedColor { get; set; }
Property Value
Methods
ApplyHTMLSettingsFromTag(ref FormattedText, FormattedText, string, TinyHTMLParsersData, ref bool, ref string)
Parse single HTML tag and apply settings
Declaration
public static bool ApplyHTMLSettingsFromTag(ref FormattedText currentFormattedText, FormattedText prevText, string htmlTag, TinyHTMLParsers.TinyHTMLParsersData parserData, ref bool shouldProduceNewLine, ref string text)
Parameters
currentFormattedText
prevText
htmlTag
parserData
TinyHTMLParsers.TinyHTMLParsersData
shouldProduceNewLine
text
Returns
IsHTMLMode(string)
check is the Text contains html command
Parse(TextParams)
Declaration
public static FormattedTextBlock Parse(TextParams textParams)
Parameters
textParams
Returns
Parse(string, Color, string, float, ContentAlignment)
Main function for parsing process
Declaration
public static FormattedTextBlock Parse(string text, Color baseForeColor, string baseFont, float fontSize, ContentAlignment aligment)
Parameters
text
text to parse
baseForeColor
base Font color
baseFont
base font
fontSize
base font size
aligment
base textaligment
Returns
Formatted text block that contains the whole structure
Parse(string, Color, string, float, FontStyle, ContentAlignment)
Main function for parsing process
Declaration
public static FormattedTextBlock Parse(string text, Color baseForeColor, string baseFont, float fontSize, FontStyle fontStyle, ContentAlignment aligment)
Parameters
text
text to parse
baseForeColor
base Font color
baseFont
base font
fontSize
base font size
fontStyle
base font style etc. Regular, Bold
aligment
base textaligment
Returns
Formatted text block that contains the whole structure