| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
-
- using System.ComponentModel;
- using System.Drawing;
- using System.Windows.Forms;
- namespace Dongke.WinForm.Controls
- {
- /// <summary>
- /// 分组控件,用于对控件集合进行分组。
- /// </summary>
- [ToolboxBitmap(typeof(Panel))]
- public class PnlPanel : Panel, IDKControl
- {
- #region 构造函数
- /// <summary>
- /// 分组控件,用于对控件集合进行分组。
- /// </summary>
- public PnlPanel()
- {
- base.BackColor = Color.Transparent;
- }
- #endregion
- #region 重写属性
- /// <summary>
- /// 获取或设置控件的背景色
- /// </summary>
- [DefaultValue(typeof(Color), "Transparent")]
- public override Color BackColor
- {
- get
- {
- return base.BackColor;
- }
- set
- {
- base.BackColor = value;
- }
- }
- #endregion
- }
- }
|