ApiBaseWidget
表示 ApiBaseWidget 类。
方法
| 方法 | 返回值 | 描述 |
|---|---|---|
| Delete | boolean | 从父字段中移除控件。 |
| GetBackgroundColor | ApiColor | 获取控件背景颜色。 |
| GetBorderColor | ApiColor | 获取控件边框颜色。 |
| GetBorderStyle | WidgetBorderStyle | 获取控件边框样式。 |
| GetBorderWidth | WidgetBorderWidth | 获取控件边框宽度。 |
| GetClassType | "page" | 返回 ApiBaseWidget 类的类型。 |
| GetPosition | Point | 获取控件位置。 |
| GetRect | Rect | 设置字段矩形。 |
| GetTextColor | ApiColor | 获取控件文本颜色。 |
| GetTextSize | pt | 获取控件文本大小。💡 文本大小 === 0 表示自动适应 |
| IsAutoFit | boolean | 检查文本是否自动适应。 |
| SetAutoFit | boolean | 设置文本自动适应。 |
| SetBackgroundColor | boolean | 设置控件背景颜色。 |
| SetBorderColor | boolean | 设置控件边框颜色。 |
| SetBorderStyle | boolean | 设置控件边框样式。 |
| SetBorderWidth | boolean | 设置控件边框宽度。 |
| SetPosition | boolean | 设置控件位置。 |
| SetRect | boolean | 设置字段矩形。 |
| SetTextColor | boolean | 设置控件文本颜色。 |
| SetTextSize | boolean | 设置控件文本大小。💡 文本大小 === 0 表示自动适应 |