TextUtils Class
Namespace: Stimulsoft.System.Text
Methods
| Method | Returns | Description |
|---|---|---|
getWordWrapTextLines static |
string[] | |
splitString static |
string[] | |
trimEndWhiteSpace static |
string | |
trimEndWhiteSpace2 static |
string |
Method Details
getWordWrapTextLines static
getWordWrapTextLines(st: string, font: Font, needWidthAlign: boolean, textW: number): string[]
Parameters
- st (string)
- font (Font)
- needWidthAlign (boolean)
- textW (number)
Returns string[]
splitString static
splitString(inputString: string, removeControl: boolean): string[]
Parameters
- inputString (string)
- removeControl (boolean)
Returns string[]
trimEndWhiteSpace static
trimEndWhiteSpace(inputString: string): string
Parameters
- inputString (string)
Returns string
trimEndWhiteSpace2 static
trimEndWhiteSpace2(inputString: string, removeControl: boolean): string
Parameters
- inputString (string)
- removeControl (boolean)
Returns string
Fields
| Field | Type | Description |
|---|---|---|
| index | any | |
| index | any | |
| index | any | |
| lastBreak | any | |
| lastIndex | any | |
| lastIndex | any | |
| lastIndex | any | |
| lastIndex | any | |
| lastLineBegin | any | |
| lastLineBegin | any | |
| outputString | any | |
| outputString | any | |
| skip | any | |
| st1 | any | |
| sumWidth | any | |
| wordCounter | any | |
| wordLength | any | |
| wordLength | any | |
| wordLength | any |