59 lines
1.4 KiB
C#
59 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.Design;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
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();//点击后立即生效
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|