/// <summary> /// Handles invocation of PreRenderColumnHeaderEvent events /// </summary> internal bool DoPreRenderColumnHeaderEvent(Graphics g, GridColumnHeader header, GridColumn column, RenderParts parts, Rectangle bounds) { if (PreRenderColumnHeader != null) { GridPanel panel = header.GridPanel; GridPreRenderColumnHeaderEventArgs ev = new GridPreRenderColumnHeaderEventArgs(g, panel, header, column, parts, bounds); PreRenderColumnHeader(this, ev); return (ev.Cancel); } return (false); }
/// <summary> /// Handles invocation of PostRenderColumnHeader events /// </summary> internal void DoPostRenderColumnHeaderEvent(Graphics g, GridColumnHeader header, GridColumn column, RenderParts parts, Rectangle bounds) { if (PostRenderColumnHeader != null) { GridPanel panel = header.GridPanel; GridPostRenderColumnHeaderEventArgs ev = new GridPostRenderColumnHeaderEventArgs(g, panel, header, column, parts, bounds); PostRenderColumnHeader(this, ev); } }
/// <summary> /// Handles invocation of GetColumnHeader RowHeader events /// </summary> internal void DoGetColumnHeaderRowHeaderStyleEvent( GridColumnHeader columnHeader, StyleType eStyle, ref ColumnHeaderRowVisualStyle style) { if (GetColumnHeaderRowHeaderStyle != null) { GridGetColumnHeaderRowHeaderStyleEventArgs ev = new GridGetColumnHeaderRowHeaderStyleEventArgs(columnHeader.GridPanel, columnHeader, eStyle, style); GetColumnHeaderRowHeaderStyle(this, ev); style = ev.Style; } }
///<summary> /// GridPreRenderColumnHeaderEventArgs ///</summary> ///<param name="graphics"></param> ///<param name="gridPanel"></param> ///<param name="header"></param> ///<param name="column"></param> ///<param name="parts"></param> ///<param name="bounds"></param> public GridPreRenderColumnHeaderEventArgs(Graphics graphics, GridPanel gridPanel, GridColumnHeader header, GridColumn column, RenderParts parts, Rectangle bounds) : base(graphics, gridPanel, header, column, parts, bounds) { }
///<summary> /// GridPostRenderColumnHeaderEventArgs ///</summary> ///<param name="graphics"></param> ///<param name="gridPanel"></param> ///<param name="columnHeader"></param> ///<param name="column"></param> ///<param name="parts"></param> ///<param name="bounds"></param> public GridPostRenderColumnHeaderEventArgs(Graphics graphics, GridPanel gridPanel, GridColumnHeader columnHeader, GridColumn column, RenderParts parts, Rectangle bounds) : base(gridPanel) { _Bounds = bounds; _Graphics = graphics; _ColumnHeader = columnHeader; _GridColumn = column; _RenderParts = parts; }
///<summary> /// GridGetColumnHeaderRowHeaderStyleEventArgs ///</summary> ///<param name="gridPanel"></param> ///<param name="columnHeader"></param> ///<param name="styleType"></param> ///<param name="style"></param> public GridGetColumnHeaderRowHeaderStyleEventArgs(GridPanel gridPanel, GridColumnHeader columnHeader, StyleType styleType, ColumnHeaderRowVisualStyle style) : base(gridPanel) { _ColumnHeader = columnHeader; _StyleType = styleType; _Style = style; }