protected override void OnDrawItemBorder(DrawItemArgs e) { if (e.Collapsed) { return; } this._pn.Color = this._colors[5][2]; e.Graphics.DrawLines(this._pn, new Point[] { new Point(0, e.HeaderHeight), new Point(0, e.ItemBounds.Bottom - 1), new Point(e.ItemBounds.Right - 1, e.ItemBounds.Bottom - 1), new Point(e.ItemBounds.Right - 1, e.HeaderHeight) }); }
protected override void OnDrawItemBorder(DrawItemArgs e) { if (e.Collapsed) return; if (e.Special) this._pn.Color=this._colors[3][0]; else this._pn.Color=this._colors[3][1]; e.Graphics.DrawLines(this._pn, new Point[]{ new Point(0,e.HeaderHeight), new Point(0,e.ItemBounds.Bottom-1), new Point(e.ItemBounds.Right-1,e.ItemBounds.Bottom-1), new Point(e.ItemBounds.Right-1,e.HeaderHeight) }); }
protected abstract void OnDrawItemBorder(DrawItemArgs e);
public void DrawItemBorder(DrawItemArgs e) { if (e.IsEmpty()) return; this.OnDrawItemBorder(e); }