line
1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Text; 7 using System.Windows.Forms; 8 9 namespace RealICQ.Service.Managers 10 { 11 public partial class Line : Control 12 { 13 public Line() 14 { 15 InitializeComponent(); 16 17 base.Height = 2; 18 } 19 20 public new int Height 21 { 22 get { return base.Height; } 23 } 24 25 26 protected override void OnPaint(PaintEventArgs pe) 27 { 28 base.OnPaint(pe); 29 pe.Graphics.DrawLine(SystemPens.ControlDark, 0, 0, this.Width, 0); 30 pe.Graphics.DrawLine(SystemPens.ControlLightLight, 1, 1, this.Width, 1); 31 } 32 } 33 }
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】博客园2025新款「AI繁忙」系列T恤上架,前往周边小店选购
【推荐】凌霞软件回馈社区,携手博客园推出1Panel与Halo联合会员
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步