From 00c714749128033116b923fa4836a8fdcce451de Mon Sep 17 00:00:00 2001 From: Sunny Date: Fri, 23 Feb 2024 23:18:34 +0800 Subject: [PATCH] =?UTF-8?q?*=20UIButton:=20=E5=A2=9E=E5=8A=A0Text=E7=9A=84?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E7=BC=96=E8=BE=91=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Controls/UIButton.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/SunnyUI/Controls/UIButton.cs b/SunnyUI/Controls/UIButton.cs index 321b9cf5..7e34152b 100644 --- a/SunnyUI/Controls/UIButton.cs +++ b/SunnyUI/Controls/UIButton.cs @@ -32,12 +32,14 @@ * 2023-11-24: V3.6.2 修复LightStyle的文字颜色 * 2023-12-06: V3.6.2 修复LightStyle的背景颜色 * 2024-02-22: V3.6.3 增加按钮的&字符的Alt快捷键功能 + * 2024-02-23: V3.6.3 增加Text的属性编辑器 ******************************************************************************/ using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; +using System.Drawing.Design; using System.Drawing.Drawing2D; using System.Text; using System.Windows.Forms; @@ -778,5 +780,15 @@ namespace Sunny.UI [DefaultValue(0)] [Description("分组编号"), Category("SunnyUI")] public int GroupIndex { get; set; } + + [Description("文本返回值"), Category("SunnyUI")] + [Browsable(true)] + [DefaultValue("")] + [Editor("System.ComponentModel.Design.MultilineStringEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))] + public override string Text + { + get => base.Text; + set => base.Text = value; + } } } \ No newline at end of file