📄 xbordercontrol.cs
字号:
namespace Imps.Client.Pc.Controls
{
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
public class XBorderControl : UserControl
{
private Color _boderColor;
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.DrawRectangle(new Pen(this._boderColor), new Rectangle(0, 0, base.Size.Width - 1, base.Size.Height - 1));
}
[Description("标签的边框颜色,当BorderStyle设置为FixedSingle时有效"), Category("外观")]
public Color BorderColor
{
get
{
return this._boderColor;
}
set
{
this._boderColor = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -