GrapeCity MultiRow Windows Forms Documentation
ColumnFooterSection Class
Members  Example 


Represents a section in the bottom panel of a GcMultiRow control.
Object Model
ColumnFooterSection ClassGradientEffect StructureBorderBase ClassCellCollection ClassCell ClassCellStyle ClassCellStyle ClassGcMultiRow ClassCellStyle ClassCell ClassGradientEffect StructureGradientEffect StructureMultiRowTouchToolBar Class
Syntax
<DefaultMemberAttribute("Item")>
<ToolboxBitmapAttribute()>
<FeatureAttribute(Name="Row_Footer_Footer", Version="v5.0")>
Public Class ColumnFooterSection 
   Inherits Section
Dim instance As ColumnFooterSection
[DefaultMember("Item")]
[ToolboxBitmap()]
[Feature(Name="Row_Footer_Footer", Version="v5.0")]
public class ColumnFooterSection : Section 
Remarks
GcMultiRow has three layout sections, top, row, and bottom. The section in the top panel is the ColumnHeaderSection. The section in the bottom panel is the ColumnFooterSection. The section in the row panel is the Row. Each part can have zero or more sections. The number of ColumnHeaderSections and ColumnFooterSections depends on the GcMultiRow.Template property in the GcMultiRow control. The ColumnHeaderSections and the ColumnFooterSections in the same GcMultiRow control can have different layouts. The number of Rows in the GcMultiRow control depends on the GcMultiRow.RowCount property. A template only has one Row and the rows in the GcMultiRow control are repeats of the Template.Row.
Example
The following code example shows how to create a ColumnFooterSection with some HeaderCells in it. This code example is part of a larger example provided for the HeaderCell class.
private ColumnFooterSection CreateColumnFooter()
        {
            ColumnFooterSection columnFooter1 = new ColumnFooterSection();
            columnFooter1.Height = 20;

            HeaderCell headerCell1 = new HeaderCell();
            headerCell1.Size = new Size(36, 20);
            //There are 4 gutters around the HeaderCell.
            headerCell1.GutterStyles = GutterStyles.All;
            //The hover effect is not drawn.
            headerCell1.HoverDirection = HoverDirection.None;
            headerCell1.SelectionMode = MultiRowSelectionMode.AllRows;

            HeaderCell headerCell2 = new HeaderCell();
            headerCell2.Size = new Size(80, 21);
            headerCell2.Location = new Point(headerCell1.Left + headerCell1.Width, 0);
            //The cell's right draws one gutter.
            headerCell2.GutterStyles = GutterStyles.Right;
            //The cell's top draws the hover effect.
            headerCell2.HoverDirection = HoverDirection.Top;
            headerCell2.SelectionMode = MultiRowSelectionMode.IntersectedCells;

            HeaderCell headerCell3 = headerCell2.Clone() as HeaderCell;
            headerCell3.Location = new Point(headerCell2.Left + headerCell2.Width, 0);

            columnFooter1.Cells.AddRange(new Cell[] { headerCell1, headerCell2, headerCell3 });

            return columnFooter1;
        }
Private Function CreateColumnFooter() As ColumnFooterSection
        Dim columnFooter1 As New ColumnFooterSection()
        columnFooter1.Height = 20

        Dim headerCell1 As New HeaderCell()
        headerCell1.Size = New Size(36, 20)
        'There are 4 gutters around the HeaderCell.
        headerCell1.GutterStyles = GutterStyles.All
        'The hover effect is not drawn.
        headerCell1.HoverDirection = HoverDirection.None
        headerCell1.SelectionMode = MultiRowSelectionMode.AllRows

        Dim headerCell2 As New HeaderCell()
        headerCell2.Size = New Size(80, 21)
        headerCell2.Location = New Point(headerCell1.Left + headerCell1.Width, 0)
        'The cell's right draws one gutter.
        headerCell2.GutterStyles = GutterStyles.Right
        'The cell's top draws the hover effect.
        headerCell2.HoverDirection = HoverDirection.Top
        headerCell2.SelectionMode = MultiRowSelectionMode.IntersectedCells

        Dim headerCell3 As HeaderCell = TryCast(headerCell2.Clone(), HeaderCell)
        headerCell3.Location = New Point(headerCell2.Left + headerCell2.Width, 0)

        columnFooter1.Cells.AddRange(New Cell() {headerCell1, headerCell2, headerCell3})

        Return columnFooter1
    End Function
Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         GrapeCity.Win.MultiRow.Section
            GrapeCity.Win.MultiRow.ColumnFooterSection

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ColumnFooterSection Members
GrapeCity.Win.MultiRow Namespace
Row Class
ColumnHeaderSection Class
Section Class
ColumnFooterSectionCollection Class

 

 


Copyright © GrapeCity, inc. All rights reserved.