Class
TinyHTMLParsers

Definition

Namespace:Telerik.WinControls.TextPrimitiveUtils

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class TinyHTMLParsers

Inheritance: objectTinyHTMLParsers

Constructors

TinyHTMLParsers()

Declaration

cs-api-definition
public TinyHTMLParsers()

Properties

LinkClickedColor

Gets or sets the color used to display a visited hyperlink.

Declaration

cs-api-definition
public static Color LinkClickedColor { get; set; }

Property Value

Color

LinkColor

Gets or sets the color used to display a non-visited hyperlink.

Declaration

cs-api-definition
public static Color LinkColor { get; set; }

Property Value

Color

Methods

ApplyHTMLSettingsFromTag(ref FormattedText, FormattedText, string, TinyHTMLParsersData, ref bool, ref string)

Parse single HTML tag and apply settings

Declaration

cs-api-definition
public static bool ApplyHTMLSettingsFromTag(ref FormattedText currentFormattedText, FormattedText prevText, string htmlTag, TinyHTMLParsers.TinyHTMLParsersData parserData, ref bool shouldProduceNewLine, ref string text)

Parameters

currentFormattedText

FormattedText

prevText

FormattedText

htmlTag

string

parserData

TinyHTMLParsers.TinyHTMLParsersData

shouldProduceNewLine

bool

text

string

Returns

bool

IsHTMLMode(string)

check is the Text contains html command

Declaration

cs-api-definition
public static bool IsHTMLMode(string text)

Parameters

text

string

text to be checked

Returns

bool

text to check

Parse(TextParams)

Declaration

cs-api-definition
public static FormattedTextBlock Parse(TextParams textParams)

Parameters

textParams

TextParams

Returns

FormattedTextBlock

Parse(string, Color, string, float, ContentAlignment)

Main function for parsing process

Declaration

cs-api-definition
public static FormattedTextBlock Parse(string text, Color baseForeColor, string baseFont, float fontSize, ContentAlignment aligment)

Parameters

text

string

text to parse

baseForeColor

Color

base Font color

baseFont

string

base font

fontSize

float

base font size

aligment

ContentAlignment

base textaligment

Returns

FormattedTextBlock

Formatted text block that contains the whole structure

Parse(string, Color, string, float, FontStyle, ContentAlignment)

Main function for parsing process

Declaration

cs-api-definition
public static FormattedTextBlock Parse(string text, Color baseForeColor, string baseFont, float fontSize, FontStyle fontStyle, ContentAlignment aligment)

Parameters

text

string

text to parse

baseForeColor

Color

base Font color

baseFont

string

base font

fontSize

float

base font size

fontStyle

FontStyle

base font style etc. Regular, Bold

aligment

ContentAlignment

base textaligment

Returns

FormattedTextBlock

Formatted text block that contains the whole structure