PowerTools MultiRow for Windows Forms 8.0J
ColumnFooterSection コンストラクタ
使用例 

ColumnFooterSectionクラスの新しいインスタンスを初期化します。
構文
Public Function New()
public ColumnFooterSection()
使用例
次のサンプルコードは、ColumnFooterSectionを作成し、その中にHeaderCellを追加する方法を示します。このサンプルコードは、HeaderCellクラスに示されている詳細なコード例の一部を抜粋したものです。
private ColumnFooterSection CreateColumnFooter()
{
    ColumnFooterSection columnFooter1 = new ColumnFooterSection();
    columnFooter1.Height = 20;

    HeaderCell headerCell1 = new HeaderCell();
    headerCell1.Size = new Size(36, 20);
    //There will exist 4 gutters around the HeaderCell.
    headerCell1.GutterStyles = GutterStyles.All;
    //The hover effect will not be 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 will draw one gutter.
    headerCell2.GutterStyles = GutterStyles.Right;
    //The cell's top will draw 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 will exist 4 gutters around the HeaderCell.
    headerCell1.GutterStyles = GutterStyles.All
    'The hover effect will not be 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 will draw one gutter.
    headerCell2.GutterStyles = GutterStyles.Right
    'The cell's top will draw 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
参照

ColumnFooterSection クラス
ColumnFooterSection メンバ

 

 


© 2008-2015 GrapeCity inc. All rights reserved.