SunnyUI/docs/UISymbolLabel.md
2024-09-24 22:08:38 +08:00

39 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# UISymbolLabel
---
- **UISymbolLabel**
字体图标标签
- 默认属性Text
- 默认事件Click
- 属性列表
| 属性 | 说明 | 类型 | 默认值 |
|-----------|--------|--------|-------|
| Style | 主题样式 | UIStyle | Blue |
| StyleCustomMode | 获取或设置可以自定义主题风格 | bool | false |
| Text |获取或设置显示的文本 | string | - |
| AutoSize| 自动大小 | bool | true |
| Symbol| 字体图标 | int | 61452 |
| SymbolColor | 图标颜色 | Color | - |
| SymbolSize| 字体图标大小 | int | 24 |
| ImageInterval| 图标和文字间间隔 | int | 2|
| TextAlign | 文字对齐方向 | ContentAlignment | MiddleCenter |
| ForeColor | 字体颜色 | Color | - |
| TagString | 获取或设置包含有关控件的数据的对象字符串 | string | - |
| Version | 版本 | string | - |
- 字体图标
![输入图片说明](./assets/212642_04b86c8c_416720.png)
- Symbol字体图标int
SymbolSize字体图标的大小int
![enter image description here](./assets/164128_b3ef97c6_416720.png)
点击Symbol右侧的按钮
![输入图片说明](./assets/04b7d3ee_416720.png)
鼠标移到图标上显示的数字为Symbol字符点击图标即可设置图标。