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

27 lines
922 B
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.

# UIMarkLabel
---
- **UIMarkLabel**
带颜色标签。
- 默认属性Text
- 默认事件Click
- 属性列表
| 属性 | 说明 | 类型 | 默认值 |
|-----------|--------|--------|-------|
| Style | 主题样式 | UIStyle | Blue |
| StyleCustomMode | 获取或设置可以自定义主题风格 | bool | false |
| Text |获取或设置显示的文本 | string | - |
| AutoSize| 自动大小 | bool | true |
| ForeColor | 字体颜色 | Color | - |
| MarkSize | 标签大小 | int | 3 |
| MarkPos | 标签位置 | UIMarkPos | Left |
| MarkColor | 标签颜色 | Color | - |
| TagString | 获取或设置包含有关控件的数据的对象字符串 | string | - |
| Version | 版本 | string | - |
- 标签位置
标签有四个显示位置,左、右、下、上,见下图:
![输入图片说明](./assets/214220_cbd9f247_416720.png)