public void AddRange(SkinListBoxItemCollection value) { foreach (SkinListBoxItem item in value) { Add(item); } }
public SkinListBox() : base() { this.Font = CCWin.Localization.Localizer.DefaultFont; _items = new SkinListBoxItemCollection(this); base.DrawMode = DrawMode.OwnerDrawFixed; this.SetStyle(ControlStyles.UserPaint, true); //自行绘制 this.SetStyle(ControlStyles.DoubleBuffer, true); // 双缓冲 this.SetStyle(ControlStyles.ResizeRedraw, true); //调整大小时重绘 this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); // 禁止擦除背景. this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); // 双缓冲 this.SetStyle(ControlStyles.SupportsTransparentBackColor, true); }
public SkinListBox() : base() { this.Font = CCWin.Localization.Localizer.DefaultFont; _items = new SkinListBoxItemCollection(this); base.DrawMode = DrawMode.OwnerDrawFixed; this.SetStyle(ControlStyles.UserPaint, true);//自行绘制 this.SetStyle(ControlStyles.DoubleBuffer, true);// 双缓冲 this.SetStyle(ControlStyles.ResizeRedraw, true);//调整大小时重绘 this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); // 禁止擦除背景. this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);// 双缓冲 this.SetStyle(ControlStyles.SupportsTransparentBackColor, true); }