protected virtual void OnRowDraw(PaintEventArgs e, TreeNodeAdv node, DrawContext context, int row, Rectangle rowRect) { if (RowDraw != null) { TreeViewRowDrawEventArgs args = new TreeViewRowDrawEventArgs(e.Graphics, e.ClipRectangle, node, context, row, rowRect); RowDraw(this, args); } }
protected virtual void OnRowDraw(PaintEventArgs e, TreeNodeAdv node, ref DrawContext context, int row, Rectangle rowRect) { //au: made context ref. Then the override can make more changes. Also it is 48 bytes. if (RowDraw != null) { TreeViewRowDrawEventArgs args = new TreeViewRowDrawEventArgs(e.Graphics, e.ClipRectangle, node, context, row, rowRect); RowDraw(this, args); } }
private void actionList_RowDraw(object sender, TreeViewRowDrawEventArgs e) { if (e.Node == this.hoveredNode) { e.Graphics.FillRectangle( new SolidBrush(Color.FromArgb(212, 212, 212)), 0, e.RowRect.Y, this.actionList.ClientSize.Width, e.RowRect.Height); } }
private void treeViewAdv1_RowDraw(object sender, TreeViewRowDrawEventArgs e) { }