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