StiStringFormatHelper Class
Namespace: Stimulsoft.Dashboard.Helpers
Methods
| Method | Returns | Description |
|---|---|---|
getFontSize static |
number | |
getStringFormatGeom static |
StiStringFormatGeom | |
measureAlignmentParameters static |
void |
Method Details
getFontSize static
getFontSize(context: StiContext, rect: Rectangle, text: string, font: Font): number
Parameters
- context (StiContext)
- rect (Rectangle)
- text (string)
- font (Font)
Returns number
getStringFormatGeom static
getStringFormatGeom(context: StiContext): StiStringFormatGeom
Parameters
- context (StiContext)
Returns StiStringFormatGeom
measureAlignmentParameters static
measureAlignmentParameters(alignment: StiHorAlignment, elementRectText: Rectangle, rotationMode: { ref: StiRotationMode }, point: { ref: Point }): void
Parameters
- alignment (StiHorAlignment)
- elementRectText (Rectangle)
- rotationMode ({ ref: StiRotationMode })
- point ({ ref: Point })