StiTextDrawing Class
Namespace: Stimulsoft.Base.Drawing
Methods
| Method | Returns | Description |
|---|---|---|
getAlignment static |
StringAlignment | |
getAlignment2 static |
StringAlignment | |
getStringFormat static |
StringFormat | |
getStringFormat2 static |
StringFormat | |
splitString static |
string[] | |
splitTextWordwrap static |
LineInfo[] | |
splitTextWordwrap2 static |
LineInfo[] | |
splitTextWordwrapWidth static |
string[] |
Method Details
getAlignment static
getAlignment(alignment: StiTextHorAlignment): StringAlignment
Parameters
- alignment (StiTextHorAlignment)
Returns StringAlignment
getAlignment2 static
getAlignment2(alignment: StiVertAlignment): StringAlignment
Parameters
- alignment (StiVertAlignment)
Returns StringAlignment
getStringFormat static
getStringFormat(textOptions: StiTextOptions, ha: StiTextHorAlignment, va: StiVertAlignment, zoom: number): StringFormat
Parameters
- textOptions (StiTextOptions)
- ha (StiTextHorAlignment)
- va (StiVertAlignment)
- zoom (number)
Returns StringFormat
getStringFormat2 static
getStringFormat2(textOptions: StiTextOptions, ha: StiTextHorAlignment, va: StiVertAlignment, antialiasing: boolean, zoom: number): StringFormat
Parameters
- textOptions (StiTextOptions)
- ha (StiTextHorAlignment)
- va (StiVertAlignment)
- antialiasing (boolean)
- zoom (number)
Returns StringFormat
splitString static
splitString(inputString: string, removeControl: boolean): string[]
Parameters
- inputString (string)
- removeControl (boolean)
Returns string[]
splitTextWordwrap static
splitTextWordwrap(text: string, g: Graphics, font: Font, rect: Rectangle, textOptions: StiTextOptions, ha: StiTextHorAlignment, typographic: boolean): LineInfo[]
Parameters
- text (string)
- g (Graphics)
- font (Font)
- rect (Rectangle)
- textOptions (StiTextOptions)
- ha (StiTextHorAlignment)
- typographic (boolean)
Returns LineInfo[]
splitTextWordwrap2 static
splitTextWordwrap2(text: string, g: Graphics, font: Font, rect: Rectangle, sf: StringFormat, horAlignWidth: any): LineInfo[]
Parameters
- text (string)
- g (Graphics)
- font (Font)
- rect (Rectangle)
- sf (StringFormat)
- horAlignWidth (any)
Returns LineInfo[]
splitTextWordwrapWidth static
splitTextWordwrapWidth(text: string, g: Graphics, font: Font, rect: Rectangle): string[]
Parameters
Returns string[]
Fields
| Field | Type | Description |
|---|---|---|
| antialiasing | boolean, allowHtmlTags | |
| defaultLineHeight | any | |
| forceNewLine | any | |
| index | any | |
| index | any | |
| index | any | |
| index | any | |
| lastBreak | any | |
| lastIndex | any | |
| lastIndex | any | |
| lastIndex | any | |
| lastIndex | any | |
| lastLineBegin | any | |
| lastLineBegin | any | |
| needCut | any | |
| output | any | |
| output | any | |
| posX | any | |
| size | any | |
| size | any | |
| skip | any | |
| spaceSize | any | |
| st | any | |
| st1 | any | |
| start | any | |
| sumWidth | any | |
| text | any | |
| text | any | |
| wordCount | any | |
| wordCounter | any | |
| wordLength | any | |
| wordLength | any | |
| wordLength | any | |
| wordLength | any | |
| wordLength | any |