コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <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);
            }
        }
コード例 #3
0
        /// <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;
            }
        }
コード例 #4
0
 ///<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)
 {
 }
コード例 #5
0
 ///<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;
 }
コード例 #6
0
 ///<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;
 }