StiHtmlTextHelper Class
Namespace: Stimulsoft.Dashboard.Design.Helpers
Inheritance
Implements: IStiHtmlTextHelper
Methods
| Method | Returns | Description |
|---|---|---|
| getColor | Color | |
| getFont | Font | |
| getHorAlign | StiTextHorAlignment | |
| getHtmlText | string | |
| getSimpleText | string | |
| growFontSize | string | |
| setColor | string | |
| setFontBoldStyle | string | |
| setFontItalicStyle | string | |
| setFontName | string | |
| setFontSize | string | |
| setFontUnderlineStyle | string | |
| setHorAlignment | string | |
| setHtmlText | void | |
| shrinkFontSize | string |
Method Details
getColor
getColor(textObj: any, text: string, defaultColor: Color): Color
Parameters
- textObj (any)
- text (string)
- defaultColor (Color)
Returns Color
getFont
getFont(textObj: any, text: string, defaultColor: Color): Font
Parameters
- textObj (any)
- text (string)
- defaultColor (Color)
Returns Font
getHorAlign
getHorAlign(textObj: any, text: string, defaultColor: Color): StiTextHorAlignment
Parameters
- textObj (any)
- text (string)
- defaultColor (Color)
Returns StiTextHorAlignment
getHtmlText
getHtmlText(richTextBox: StiRichBoxControl, defaultColor: Color): string
Parameters
- richTextBox (StiRichBoxControl)
- defaultColor (Color)
Returns string
getSimpleText
getSimpleText(htmlText: string, defaultColor: Color): string
Parameters
- htmlText (string)
- defaultColor (Color)
Returns string
growFontSize
growFontSize(textObj: any, text: string, defaultColor: Color): string
Parameters
- textObj (any)
- text (string)
- defaultColor (Color)
Returns string
setColor
setColor(textObj: any, text: string, color: Color, defaultColor: Color): string
Parameters
Returns string
setFontBoldStyle
setFontBoldStyle(textObj: any, text: string, isBold: boolean, defaultColor: Color): string
Parameters
- textObj (any)
- text (string)
- isBold (boolean)
- defaultColor (Color)
Returns string
setFontItalicStyle
setFontItalicStyle(textObj: any, text: string, isItalic: boolean, defaultColor: Color): string
Parameters
- textObj (any)
- text (string)
- isItalic (boolean)
- defaultColor (Color)
Returns string
setFontName
setFontName(textObj: any, text: string, fontName: string, defaultColor: Color): string
Parameters
- textObj (any)
- text (string)
- fontName (string)
- defaultColor (Color)
Returns string
setFontSize
setFontSize(textObj: any, text: string, fontSize: number, defaultColor: Color): string
Parameters
- textObj (any)
- text (string)
- fontSize (number)
- defaultColor (Color)
Returns string
setFontUnderlineStyle
setFontUnderlineStyle(textObj: any, text: string, isUnderline: boolean, defaultColor: Color): string
Parameters
- textObj (any)
- text (string)
- isUnderline (boolean)
- defaultColor (Color)
Returns string
setHorAlignment
setHorAlignment(textObj: any, text: string, alignment: StiTextHorAlignment, defaultColor: Color): string
Parameters
- textObj (any)
- text (string)
- alignment (StiTextHorAlignment)
- defaultColor (Color)
Returns string
setHtmlText
setHtmlText(htmlText: string, textObj: any, richTextBox: StiRichBoxControl, defaultColor: Color): void
Parameters
- htmlText (string)
- textObj (any)
- richTextBox (StiRichBoxControl)
- defaultColor (Color)
shrinkFontSize
shrinkFontSize(textObj: any, text: string, defaultColor: Color): string
Parameters
- textObj (any)
- text (string)
- defaultColor (Color)
Returns string
Fields
| Field | Type | Description |
|---|---|---|
| color | any | |
| color | any | |
| color | any | |
| font | any | |
| isBold | any | |
| isBold | any | |
| isItalic | any | |
| isItalic | any | |
| isUnderline | any | |
| isUnderline | any | |
| selectedText | any | |
| selectedText | any |