StiTitle Class
Namespace: Stimulsoft.Dashboard.Components
Inheritance
Implements: ICloneable
Constructors
| Constructor | Description |
|---|---|
| constructor(string text, Color foreColor, Color backColor, Font font, StiHorAlignment alignment, boolean visible, StiTextSizeMode sizeMode, StiTitlePadding padding) |
constructor(text: string, foreColor: Color, backColor: Color, font: Font, alignment: StiHorAlignment, visible: boolean, sizeMode: StiTextSizeMode, padding: StiTitlePadding)
Parameters
- text (string)
- foreColor (Color)
- backColor (Color)
- font (Font)
- alignment (StiHorAlignment)
- visible (boolean)
- sizeMode (StiTextSizeMode)
- padding (StiTitlePadding)
Methods
| Method | Returns | Description |
|---|---|---|
| clone | any | Creates a new object that is a copy of the current instance. |
createFromJsonObject static |
StiTitle | |
createFromXml static |
StiTitle | |
| implements | any[] | |
| loadFromJsonObject | void | |
| loadFromXml | void | |
| meta | StiMeta[] | |
| saveToJsonObject | StiJson |
Method Details
clone
clone(): any
Creates a new object that is a copy of the current instance.
Returns any — A new object that is a copy of this instance.
createFromJsonObject static
createFromJsonObject(jObject: StiJson): StiTitle
Parameters
- jObject (StiJson)
Returns StiTitle
createFromXml static
createFromXml(xmlNode: XmlNode): StiTitle
Parameters
- xmlNode (XmlNode)
Returns StiTitle
implements
implements(): any[]
Returns any[]
loadFromJsonObject
loadFromJsonObject(j: StiJson): void
Parameters
- j (StiJson)
loadFromXml
loadFromXml(xn: XmlNode): void
Parameters
- xn (XmlNode)
meta
meta(): StiMeta[]
Returns StiMeta[]
saveToJsonObject
saveToJsonObject(mode: StiJsonSaveMode): StiJson
Parameters
- mode (StiJsonSaveMode)
Returns StiJson
Fields
| Field | Type | Description |
|---|---|---|
| IStiTitlePadding | any | |
| _hash | StiMeta[] | |
| backColor | any | Gets or sets a back color. |
| font | any | Gets or set font which will be used for title drawing. |
| foreColor | any | Gets or sets font color for this element. |
| horAlignment | any | Gets or sets title text alignment. |
| padding | any | Specifies the interior spacing of the title. |
| sizeMode | any | Specifies how the text output in the component area depends on the text size. |
| text | any | Gets or sets title text. |
| visible | any | Gets or sets visibility of title. |