Files
1257B_DB/JinYuan.ControlLib/ucPanel_900_450.cs
T
2026-08-06 09:23:30 +08:00

52 lines
1.3 KiB
C#

using System.ComponentModel;
using System.ComponentModel.Design;
using System.Windows.Forms;
namespace JinYuan.ControlLib
{
[Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(IDesigner))]
public partial class ucPanel_900_450 : UserControl
{
public ucPanel_900_450()
{
InitializeComponent();
}
[Category("自定义参数")]
[DefaultValue("标题文字")]
[Description("标题文字")]
[Browsable(true)]
public string Title
{
set
{
lbTitle.Text = value;
lbTitle.Invalidate();
pbArrow.Left = lbTitle.Right + 3;
}
get
{
return lbTitle.Text;
}
}
private bool titleVisible = true;
[Browsable(true)]//是否可见
[Category("自定义属性")] //类别
[Description("设置或显示上边箭头是否隐藏")]
public bool TitleVisible
{
get { return titleVisible; }
set
{
titleVisible = value;
pbArrow.Visible = titleVisible;
this.Invalidate();//点击后立即生效
}
}
}
}