IStiHtmlTextHelper Interface
Namespace: Stimulsoft.Report.Dashboard
Methods
| Method | Returns | Description |
|---|---|---|
| getColor | Color | |
| getFont | Font | |
| getHorAlign | StiTextHorAlignment | |
| getSimpleText | string | |
| growFontSize | string | |
| setColor | string | |
| setFontBoldStyle | string | |
| setFontItalicStyle | string | |
| setFontName | string | |
| setFontSize | string | |
| setFontUnderlineStyle | string | |
| setHorAlignment | string | |
| 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
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
shrinkFontSize
shrinkFontSize(textObj: any, text: string, defaultColor: Color): string
Parameters
- textObj (any)
- text (string)
- defaultColor (Color)
Returns string