ApiBaseWidget
Represents the ApiBaseWidget class.
Methods
| Method | Returns | Description |
|---|---|---|
| Delete | boolean | Removes widget from parent field. |
| GetBackgroundColor | ApiColor | Gets widget background color. |
| GetBorderColor | ApiColor | Gets widget border color. |
| GetBorderStyle | WidgetBorderStyle | Gets widget border style. |
| GetBorderWidth | WidgetBorderWidth | Gets widget border width. |
| GetClassType | "page" | Returns a type of the ApiBaseWidget class. |
| GetPosition | Point | Gets widget position. |
| GetRect | Rect | Sets field rect. |
| GetTextColor | ApiColor | Gets widget text color. |
| GetTextSize | pt | Gets widget text size. 💡 Text size === 0 means autofit |
| IsAutoFit | boolean | Checks if text is autofit. |
| SetAutoFit | boolean | Sets text autofit. |
| SetBackgroundColor | boolean | Sets widget background color. |
| SetBorderColor | boolean | Sets widget border color. |
| SetBorderStyle | boolean | Sets widget border style. |
| SetBorderWidth | boolean | Sets widget border width. |
| SetPosition | boolean | Sets widget position. |
| SetRect | boolean | Sets field rect. |
| SetTextColor | boolean | Sets widget text color. |
| SetTextSize | boolean | Sets widget text size. 💡 Text size === 0 means autofit |