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

1.2 KiB
Raw Blame History

UILedDisplay


  • UILedDisplay LED显示屏。
    注:仅支持英文、数字、标点符号、希腊字母,不支持中文

  • 默认属性Text

  • 默认事件:-

  • 属性列表

属性 说明 类型 默认值
Text 获取或设置显示的文本 string -
CharCount 显示字符个数 int 10
BorderColor 边框颜色 Color -
BorderInColor 内线颜色 Color -
LedBackColor LED背景色 Color -
BorderWidth 边框宽度 int 1
BorderInWidth 内线宽度 int 1
IntervalIn LED亮块间距 int 1
IntervalOn LED亮块大小 int 2
IntervalH 左右边距 int 2
IntervalV 上下边距 int 5
TagString 获取或设置包含有关控件的数据的对象字符串 string -
Version 版本 string -
  • 控件宽度
    因为本控件模拟的时一个LED点阵显示屏LED点阵显示屏宽度由可显示字符个数决定。
    所以需要调整控件的宽度不是设置Width属性而是设置CharCount属性。

  • 示例
    输入图片说明