PowerTools MultiRow for Windows Forms 8.0J
HeaderCellHighlightMode プロパティ
使用例 

GcMultiRow コントロールが HeaderCell の強調表示効果をどのように描画するかを示す値を取得または設定します。
構文
Public Property HeaderCellHighlightMode As HighlightMode
public HighlightMode HeaderCellHighlightMode {get; set;}

プロパティ値

GcMultiRow コントロールが HeaderCell の強調表示効果をどのように描画するかを示す HighlightMode 値の 1 つ。既定値は HighlightMode.None です。
使用例
次のサンプルコードは、ヘッダセルを強調表示する方法を示します。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GrapeCity.Win.MultiRow.SampleCode
{
    public class HighlightHeaderCellDemo:Form
    {
        private GcMultiRow gcMuliRow1 = new GcMultiRow();

        public HighlightHeaderCellDemo()
        {
            this.Text = "HighlightHeaderCell Demo";
            this.Size = new System.Drawing.Size(800, 400);
            this.StartPosition = FormStartPosition.CenterScreen;

            this.gcMuliRow1.Dock = DockStyle.Fill;
            this.Controls.Add(this.gcMuliRow1);

            this.Load += HighlightHeaderCellDemoLoad;
        }

        private void HighlightHeaderCellDemoLoad(object sender, EventArgs e)
        {
            this.gcMuliRow1.Template = this.CreateTemplate();
            this.gcMuliRow1.RowCount = 20;
            this.gcMuliRow1.HeaderCellHighlightMode = HighlightMode.ContainedCells;
            this.SetHighlightRowHeaderCell();
            this.SetHightlightColumnHeaderCell();
            this.gcMuliRow1.Template = this.gcMuliRow1.Template;
        }

        private void SetHighlightRowHeaderCell()
        {
            RowHeaderCell headerCell=this.gcMuliRow1.Template.Row.Cells["rowHeaderCell1"] as RowHeaderCell;
            headerCell.HighlightRelatedCellNames.Add(new List<string> {"textBoxCell1" });
            headerCell.HighlightRelatedCellNames.Add(new List<string> {"textBoxCell2"});
            headerCell.HighlightRelatedCellNames.Add(new List<string> {"textBoxCell3" });
        }

        private void SetHightlightColumnHeaderCell()
        {
             ColumnHeaderCell headerCell= this.gcMuliRow1.Template.ColumnHeaders[0].Cells["columnHeaderCell3"] as ColumnHeaderCell;
             headerCell.HighlightRelatedCellNames.Add(new List<string> { "textBoxCell1", "textBoxCell2" });
             headerCell.HighlightRelatedCellNames.Add(new List<string> { "textBoxCell3"});             
        }

        private Template CreateTemplate()
        {
            Template template = new Template();

            ColumnHeaderSection columnHeaderSection1;
            CornerHeaderCell cornerHeaderCell1;
            RowHeaderCell rowHeaderCell1;
            ColumnHeaderCell columnHeaderCell1;
            ColumnHeaderCell columnHeaderCell2;
            RowHeaderCell rowHeaderCell2;
            RowHeaderCell rowHeaderCell3;
            TextBoxCell textBoxCell1;
            TextBoxCell textBoxCell2;
            TextBoxCell textBoxCell3;
            TextBoxCell textBoxCell4;
            TextBoxCell textBoxCell5;
            TextBoxCell textBoxCell6;
            TextBoxCell textBoxCell7;
            TextBoxCell textBoxCell8;
            TextBoxCell textBoxCell9;
            ColumnHeaderCell columnHeaderCell3;
            ColumnHeaderCell columnHeaderCell4;
            ColumnHeaderCell columnHeaderCell5;
            ColumnHeaderCell columnHeaderCell6;
            ColumnHeaderCell columnHeaderCell7;
            ColumnHeaderCell columnHeaderCell8;
            ColumnHeaderCell columnHeaderCell9;

            columnHeaderSection1 = new GrapeCity.Win.MultiRow.ColumnHeaderSection();
            cornerHeaderCell1 = new GrapeCity.Win.MultiRow.CornerHeaderCell();
            columnHeaderCell1 = new GrapeCity.Win.MultiRow.ColumnHeaderCell();
            columnHeaderCell2 = new GrapeCity.Win.MultiRow.ColumnHeaderCell();
            columnHeaderCell3 = new GrapeCity.Win.MultiRow.ColumnHeaderCell();
            columnHeaderCell4 = new GrapeCity.Win.MultiRow.ColumnHeaderCell();
            columnHeaderCell5 = new GrapeCity.Win.MultiRow.ColumnHeaderCell();
            columnHeaderCell6 = new GrapeCity.Win.MultiRow.ColumnHeaderCell();
            columnHeaderCell7 = new GrapeCity.Win.MultiRow.ColumnHeaderCell();
            columnHeaderCell8 = new GrapeCity.Win.MultiRow.ColumnHeaderCell();
            columnHeaderCell9 = new GrapeCity.Win.MultiRow.ColumnHeaderCell();
            rowHeaderCell1 = new GrapeCity.Win.MultiRow.RowHeaderCell();
            rowHeaderCell2 = new GrapeCity.Win.MultiRow.RowHeaderCell();
            rowHeaderCell3 = new GrapeCity.Win.MultiRow.RowHeaderCell();
            textBoxCell1 = new GrapeCity.Win.MultiRow.TextBoxCell();
            textBoxCell2 = new GrapeCity.Win.MultiRow.TextBoxCell();
            textBoxCell3 = new GrapeCity.Win.MultiRow.TextBoxCell();
            textBoxCell4 = new GrapeCity.Win.MultiRow.TextBoxCell();
            textBoxCell5 = new GrapeCity.Win.MultiRow.TextBoxCell();
            textBoxCell6 = new GrapeCity.Win.MultiRow.TextBoxCell();
            textBoxCell7 = new GrapeCity.Win.MultiRow.TextBoxCell();
            textBoxCell8 = new GrapeCity.Win.MultiRow.TextBoxCell();
            textBoxCell9 = new GrapeCity.Win.MultiRow.TextBoxCell();
            // 
            // Row
            // 
            template.Row.Cells.Add(rowHeaderCell1);
            template.Row.Cells.Add(rowHeaderCell2);
            template.Row.Cells.Add(rowHeaderCell3);
            template.Row.Cells.Add(textBoxCell1);
            template.Row.Cells.Add(textBoxCell2);
            template.Row.Cells.Add(textBoxCell3);
            template.Row.Cells.Add(textBoxCell4);
            template.Row.Cells.Add(textBoxCell5);
            template.Row.Cells.Add(textBoxCell6);
            template.Row.Cells.Add(textBoxCell7);
            template.Row.Cells.Add(textBoxCell8);
            template.Row.Cells.Add(textBoxCell9);
            template.Row.Height = 42;
            template.Row.Width = 560;
            // 
            // columnHeaderSection1
            // 
            columnHeaderSection1.Cells.Add(cornerHeaderCell1);
            columnHeaderSection1.Cells.Add(columnHeaderCell1);
            columnHeaderSection1.Cells.Add(columnHeaderCell2);
            columnHeaderSection1.Cells.Add(columnHeaderCell3);
            columnHeaderSection1.Cells.Add(columnHeaderCell4);
            columnHeaderSection1.Cells.Add(columnHeaderCell5);
            columnHeaderSection1.Cells.Add(columnHeaderCell6);
            columnHeaderSection1.Cells.Add(columnHeaderCell7);
            columnHeaderSection1.Cells.Add(columnHeaderCell8);
            columnHeaderSection1.Cells.Add(columnHeaderCell9);
            columnHeaderSection1.Height = 40;
            columnHeaderSection1.Name = "columnHeaderSection1";
            columnHeaderSection1.Width = 560;
            // 
            // cornerHeaderCell1
            // 
            cornerHeaderCell1.Location = new System.Drawing.Point(0, 0);
            cornerHeaderCell1.Name = "cornerHeaderCell1";
            cornerHeaderCell1.Size = new System.Drawing.Size(80, 40);
            cornerHeaderCell1.TabIndex = 20;
            // 
            // columnHeaderCell1
            // 
            columnHeaderCell1.Location = new System.Drawing.Point(80, 20);
            columnHeaderCell1.Name = "columnHeaderCell1";
            columnHeaderCell1.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            columnHeaderCell1.TabIndex = 21;
            // 
            // columnHeaderCell2
            // 
            columnHeaderCell2.Location = new System.Drawing.Point(160, 20);
            columnHeaderCell2.Name = "columnHeaderCell2";
            columnHeaderCell2.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            columnHeaderCell2.TabIndex = 22;
            // 
            // columnHeaderCell3
            // 
            columnHeaderCell3.Location = new System.Drawing.Point(80, 0);
            columnHeaderCell3.Name = "columnHeaderCell3";
            columnHeaderCell3.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            columnHeaderCell3.Size = new System.Drawing.Size(160, 20);
            columnHeaderCell3.TabIndex = 23;
            // 
            // columnHeaderCell4
            // 
            columnHeaderCell4.Location = new System.Drawing.Point(240, 20);
            columnHeaderCell4.Name = "columnHeaderCell4";
            columnHeaderCell4.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            columnHeaderCell4.TabIndex = 24;
            // 
            // columnHeaderCell5
            // 
            columnHeaderCell5.Location = new System.Drawing.Point(320, 20);
            columnHeaderCell5.Name = "columnHeaderCell5";
            columnHeaderCell5.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            columnHeaderCell5.TabIndex = 25;
            // 
            // columnHeaderCell6
            // 
            columnHeaderCell6.Location = new System.Drawing.Point(240, 0);
            columnHeaderCell6.Name = "columnHeaderCell6";
            columnHeaderCell6.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            columnHeaderCell6.Size = new System.Drawing.Size(160, 20);
            columnHeaderCell6.TabIndex = 26;
            // 
            // columnHeaderCell7
            // 
            columnHeaderCell7.Location = new System.Drawing.Point(400, 20);
            columnHeaderCell7.Name = "columnHeaderCell7";
            columnHeaderCell7.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            columnHeaderCell7.TabIndex = 27;
            // 
            // columnHeaderCell8
            // 
            columnHeaderCell8.Location = new System.Drawing.Point(480, 20);
            columnHeaderCell8.Name = "columnHeaderCell8";
            columnHeaderCell8.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            columnHeaderCell8.TabIndex = 28;
            // 
            // columnHeaderCell9
            // 
            columnHeaderCell9.Location = new System.Drawing.Point(400, 0);
            columnHeaderCell9.Name = "columnHeaderCell9";
            columnHeaderCell9.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            columnHeaderCell9.Size = new System.Drawing.Size(160, 20);
            columnHeaderCell9.TabIndex = 29;
            // 
            // rowHeaderCell1
            // 
            rowHeaderCell1.Location = new System.Drawing.Point(0, 0);
            rowHeaderCell1.Name = "rowHeaderCell1";
            rowHeaderCell1.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            rowHeaderCell1.Size = new System.Drawing.Size(40, 42);
            rowHeaderCell1.TabIndex = 20;
            // 
            // rowHeaderCell2
            // 
            rowHeaderCell2.Location = new System.Drawing.Point(40, 0);
            rowHeaderCell2.Name = "rowHeaderCell2";
            rowHeaderCell2.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            rowHeaderCell2.Size = new System.Drawing.Size(40, 21);
            rowHeaderCell2.TabIndex = 21;
            // 
            // rowHeaderCell3
            // 
            rowHeaderCell3.Location = new System.Drawing.Point(40, 21);
            rowHeaderCell3.Name = "rowHeaderCell3";
            rowHeaderCell3.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            rowHeaderCell3.Size = new System.Drawing.Size(40, 21);
            rowHeaderCell3.TabIndex = 22;
            // 
            // textBoxCell1
            // 
            textBoxCell1.Location = new System.Drawing.Point(80, 0);
            textBoxCell1.Name = "textBoxCell1";
            textBoxCell1.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            textBoxCell1.TabIndex = 23;
            // 
            // textBoxCell2
            // 
            textBoxCell2.Location = new System.Drawing.Point(160, 0);
            textBoxCell2.Name = "textBoxCell2";
            textBoxCell2.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            textBoxCell2.TabIndex = 24;
            // 
            // textBoxCell3
            // 
            textBoxCell3.Location = new System.Drawing.Point(80, 21);
            textBoxCell3.Name = "textBoxCell3";
            textBoxCell3.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            textBoxCell3.Size = new System.Drawing.Size(160, 21);
            textBoxCell3.TabIndex = 25;
            // 
            // textBoxCell4
            // 
            textBoxCell4.Location = new System.Drawing.Point(240, 0);
            textBoxCell4.Name = "textBoxCell4";
            textBoxCell4.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            textBoxCell4.TabIndex = 26;
            // 
            // textBoxCell5
            // 
            textBoxCell5.Location = new System.Drawing.Point(320, 0);
            textBoxCell5.Name = "textBoxCell5";
            textBoxCell5.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            textBoxCell5.TabIndex = 27;
            // 
            // textBoxCell6
            // 
            textBoxCell6.Location = new System.Drawing.Point(240, 21);
            textBoxCell6.Name = "textBoxCell6";
            textBoxCell6.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            textBoxCell6.Size = new System.Drawing.Size(160, 21);
            textBoxCell6.TabIndex = 28;
            // 
            // textBoxCell7
            // 
            textBoxCell7.Location = new System.Drawing.Point(400, 0);
            textBoxCell7.Name = "textBoxCell7";
            textBoxCell7.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            textBoxCell7.TabIndex = 29;
            // 
            // textBoxCell8
            // 
            textBoxCell8.Location = new System.Drawing.Point(480, 0);
            textBoxCell8.Name = "textBoxCell8";
            textBoxCell8.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            textBoxCell8.TabIndex = 30;
            // 
            // textBoxCell9
            // 
            textBoxCell9.Location = new System.Drawing.Point(400, 21);
            textBoxCell9.Name = "textBoxCell9";
            textBoxCell9.ResizeMode = GrapeCity.Win.MultiRow.ResizeMode.Both;
            textBoxCell9.Size = new System.Drawing.Size(160, 21);
            textBoxCell9.TabIndex = 31;
            // 
            // TopToBottom3
            // 
            template.ColumnHeaders.AddRange(new GrapeCity.Win.MultiRow.ColumnHeaderSection[] {
            columnHeaderSection1});
            template.Height = 82;
            template.Width = 560;

            return template;
        }

        [STAThreadAttribute()]
        public static void Main()
        {
            Application.EnableVisualStyles();
            Application.Run(new HighlightHeaderCellDemo());
        }
    }
}
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports System.Windows.Forms

Namespace GrapeCity.Win.MultiRow.SampleCode

    Public Class HighlightHeaderCellDemo
        Inherits Form

        Private gcMuliRow1 As GcMultiRow = New GcMultiRow

        Public Sub New()
            MyBase.New()
            Me.Text = "HighlightHeaderCell Demo"
            Me.Size = New System.Drawing.Size(800, 400)
            Me.StartPosition = FormStartPosition.CenterScreen
            Me.gcMuliRow1.Dock = DockStyle.Fill
            Me.Controls.Add(Me.gcMuliRow1)          
        End Sub

        Private Sub HighlightHeaderCellDemoLoad(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
            Me.gcMuliRow1.Template = Me.CreateTemplate
            Me.gcMuliRow1.RowCount = 20
            Me.gcMuliRow1.HeaderCellHighlightMode = HighlightMode.ContainedCells
            Me.SetHighlightRowHeaderCell()
            Me.SetHightlightColumnHeaderCell()
            Me.gcMuliRow1.Template = Me.gcMuliRow1.Template
        End Sub

        Private Sub SetHighlightRowHeaderCell()
            Dim headerCell As RowHeaderCell = CType(Me.gcMuliRow1.Template.Row.Cells("rowHeaderCell1"), RowHeaderCell)
            headerCell.HighlightRelatedCellNames.Add(New List(Of String)() From {"textBoxCell1"})
            headerCell.HighlightRelatedCellNames.Add(New List(Of String)() From {"textBoxCell2"})
            headerCell.HighlightRelatedCellNames.Add(New List(Of String)() From {"textBoxCell3"})
        End Sub

        Private Sub SetHightlightColumnHeaderCell()
            Dim headerCell As ColumnHeaderCell = CType(Me.gcMuliRow1.Template.ColumnHeaders(0).Cells("columnHeaderCell3"), ColumnHeaderCell)
            headerCell.HighlightRelatedCellNames.Add(New List(Of String)() From {"textBoxCell1", "textBoxCell2"})
            headerCell.HighlightRelatedCellNames.Add(New List(Of String)() From {"textBoxCell3"})
        End Sub

        Private Function CreateTemplate() As Template
            Dim template As Template = New Template
            Dim columnHeaderSection1 As ColumnHeaderSection
            Dim cornerHeaderCell1 As CornerHeaderCell
            Dim rowHeaderCell1 As RowHeaderCell
            Dim columnHeaderCell1 As ColumnHeaderCell
            Dim columnHeaderCell2 As ColumnHeaderCell
            Dim rowHeaderCell2 As RowHeaderCell
            Dim rowHeaderCell3 As RowHeaderCell
            Dim textBoxCell1 As TextBoxCell
            Dim textBoxCell2 As TextBoxCell
            Dim textBoxCell3 As TextBoxCell
            Dim textBoxCell4 As TextBoxCell
            Dim textBoxCell5 As TextBoxCell
            Dim textBoxCell6 As TextBoxCell
            Dim textBoxCell7 As TextBoxCell
            Dim textBoxCell8 As TextBoxCell
            Dim textBoxCell9 As TextBoxCell
            Dim columnHeaderCell3 As ColumnHeaderCell
            Dim columnHeaderCell4 As ColumnHeaderCell
            Dim columnHeaderCell5 As ColumnHeaderCell
            Dim columnHeaderCell6 As ColumnHeaderCell
            Dim columnHeaderCell7 As ColumnHeaderCell
            Dim columnHeaderCell8 As ColumnHeaderCell
            Dim columnHeaderCell9 As ColumnHeaderCell
            columnHeaderSection1 = New ColumnHeaderSection()
            cornerHeaderCell1 = New CornerHeaderCell()
            columnHeaderCell1 = New ColumnHeaderCell()
            columnHeaderCell2 = New ColumnHeaderCell()
            columnHeaderCell3 = New ColumnHeaderCell()
            columnHeaderCell4 = New ColumnHeaderCell()
            columnHeaderCell5 = New ColumnHeaderCell()
            columnHeaderCell6 = New ColumnHeaderCell()
            columnHeaderCell7 = New ColumnHeaderCell()
            columnHeaderCell8 = New ColumnHeaderCell()
            columnHeaderCell9 = New ColumnHeaderCell()
            rowHeaderCell1 = New RowHeaderCell()
            rowHeaderCell2 = New RowHeaderCell()
            rowHeaderCell3 = New RowHeaderCell()
            textBoxCell1 = New TextBoxCell()
            textBoxCell2 = New TextBoxCell()
            textBoxCell3 = New TextBoxCell()
            textBoxCell4 = New TextBoxCell()
            textBoxCell5 = New TextBoxCell()
            textBoxCell6 = New TextBoxCell()
            textBoxCell7 = New TextBoxCell()
            textBoxCell8 = New TextBoxCell()
            textBoxCell9 = New TextBoxCell()
            ' 
            ' Row
            ' 
            template.Row.Cells.Add(rowHeaderCell1)
            template.Row.Cells.Add(rowHeaderCell2)
            template.Row.Cells.Add(rowHeaderCell3)
            template.Row.Cells.Add(textBoxCell1)
            template.Row.Cells.Add(textBoxCell2)
            template.Row.Cells.Add(textBoxCell3)
            template.Row.Cells.Add(textBoxCell4)
            template.Row.Cells.Add(textBoxCell5)
            template.Row.Cells.Add(textBoxCell6)
            template.Row.Cells.Add(textBoxCell7)
            template.Row.Cells.Add(textBoxCell8)
            template.Row.Cells.Add(textBoxCell9)
            template.Row.Height = 42
            template.Row.Width = 560
            ' 
            ' columnHeaderSection1
            ' 
            columnHeaderSection1.Cells.Add(cornerHeaderCell1)
            columnHeaderSection1.Cells.Add(columnHeaderCell1)
            columnHeaderSection1.Cells.Add(columnHeaderCell2)
            columnHeaderSection1.Cells.Add(columnHeaderCell3)
            columnHeaderSection1.Cells.Add(columnHeaderCell4)
            columnHeaderSection1.Cells.Add(columnHeaderCell5)
            columnHeaderSection1.Cells.Add(columnHeaderCell6)
            columnHeaderSection1.Cells.Add(columnHeaderCell7)
            columnHeaderSection1.Cells.Add(columnHeaderCell8)
            columnHeaderSection1.Cells.Add(columnHeaderCell9)
            columnHeaderSection1.Height = 40
            columnHeaderSection1.Name = "columnHeaderSection1"
            columnHeaderSection1.Width = 560
            ' 
            ' cornerHeaderCell1
            ' 
            cornerHeaderCell1.Location = New System.Drawing.Point(0, 0)
            cornerHeaderCell1.Name = "cornerHeaderCell1"
            cornerHeaderCell1.Size = New System.Drawing.Size(80, 40)
            cornerHeaderCell1.TabIndex = 20
            ' 
            ' columnHeaderCell1
            ' 
            columnHeaderCell1.Location = New System.Drawing.Point(80, 20)
            columnHeaderCell1.Name = "columnHeaderCell1"
            columnHeaderCell1.ResizeMode = ResizeMode.Both
            columnHeaderCell1.TabIndex = 21
            ' 
            ' columnHeaderCell2
            ' 
            columnHeaderCell2.Location = New System.Drawing.Point(160, 20)
            columnHeaderCell2.Name = "columnHeaderCell2"
            columnHeaderCell2.ResizeMode = ResizeMode.Both
            columnHeaderCell2.TabIndex = 22
            ' 
            ' columnHeaderCell3
            ' 
            columnHeaderCell3.Location = New System.Drawing.Point(80, 0)
            columnHeaderCell3.Name = "columnHeaderCell3"
            columnHeaderCell3.ResizeMode = ResizeMode.Both
            columnHeaderCell3.Size = New System.Drawing.Size(160, 20)
            columnHeaderCell3.TabIndex = 23
            ' 
            ' columnHeaderCell4
            ' 
            columnHeaderCell4.Location = New System.Drawing.Point(240, 20)
            columnHeaderCell4.Name = "columnHeaderCell4"
            columnHeaderCell4.ResizeMode = ResizeMode.Both
            columnHeaderCell4.TabIndex = 24
            ' 
            ' columnHeaderCell5
            ' 
            columnHeaderCell5.Location = New System.Drawing.Point(320, 20)
            columnHeaderCell5.Name = "columnHeaderCell5"
            columnHeaderCell5.ResizeMode = ResizeMode.Both
            columnHeaderCell5.TabIndex = 25
            ' 
            ' columnHeaderCell6
            ' 
            columnHeaderCell6.Location = New System.Drawing.Point(240, 0)
            columnHeaderCell6.Name = "columnHeaderCell6"
            columnHeaderCell6.ResizeMode = ResizeMode.Both
            columnHeaderCell6.Size = New System.Drawing.Size(160, 20)
            columnHeaderCell6.TabIndex = 26
            ' 
            ' columnHeaderCell7
            ' 
            columnHeaderCell7.Location = New System.Drawing.Point(400, 20)
            columnHeaderCell7.Name = "columnHeaderCell7"
            columnHeaderCell7.ResizeMode = ResizeMode.Both
            columnHeaderCell7.TabIndex = 27
            ' 
            ' columnHeaderCell8
            ' 
            columnHeaderCell8.Location = New System.Drawing.Point(480, 20)
            columnHeaderCell8.Name = "columnHeaderCell8"
            columnHeaderCell8.ResizeMode = ResizeMode.Both
            columnHeaderCell8.TabIndex = 28
            ' 
            ' columnHeaderCell9
            ' 
            columnHeaderCell9.Location = New System.Drawing.Point(400, 0)
            columnHeaderCell9.Name = "columnHeaderCell9"
            columnHeaderCell9.ResizeMode = ResizeMode.Both
            columnHeaderCell9.Size = New System.Drawing.Size(160, 20)
            columnHeaderCell9.TabIndex = 29
            ' 
            ' rowHeaderCell1
            ' 
            rowHeaderCell1.Location = New System.Drawing.Point(0, 0)
            rowHeaderCell1.Name = "rowHeaderCell1"
            rowHeaderCell1.ResizeMode = ResizeMode.Both
            rowHeaderCell1.Size = New System.Drawing.Size(40, 42)
            rowHeaderCell1.TabIndex = 20
            ' 
            ' rowHeaderCell2
            ' 
            rowHeaderCell2.Location = New System.Drawing.Point(40, 0)
            rowHeaderCell2.Name = "rowHeaderCell2"
            rowHeaderCell2.ResizeMode = ResizeMode.Both
            rowHeaderCell2.Size = New System.Drawing.Size(40, 21)
            rowHeaderCell2.TabIndex = 21
            ' 
            ' rowHeaderCell3
            ' 
            rowHeaderCell3.Location = New System.Drawing.Point(40, 21)
            rowHeaderCell3.Name = "rowHeaderCell3"
            rowHeaderCell3.ResizeMode = ResizeMode.Both
            rowHeaderCell3.Size = New System.Drawing.Size(40, 21)
            rowHeaderCell3.TabIndex = 22
            ' 
            ' textBoxCell1
            ' 
            textBoxCell1.Location = New System.Drawing.Point(80, 0)
            textBoxCell1.Name = "textBoxCell1"
            textBoxCell1.ResizeMode = ResizeMode.Both
            textBoxCell1.TabIndex = 23
            ' 
            ' textBoxCell2
            ' 
            textBoxCell2.Location = New System.Drawing.Point(160, 0)
            textBoxCell2.Name = "textBoxCell2"
            textBoxCell2.ResizeMode = ResizeMode.Both
            textBoxCell2.TabIndex = 24
            ' 
            ' textBoxCell3
            ' 
            textBoxCell3.Location = New System.Drawing.Point(80, 21)
            textBoxCell3.Name = "textBoxCell3"
            textBoxCell3.ResizeMode = ResizeMode.Both
            textBoxCell3.Size = New System.Drawing.Size(160, 21)
            textBoxCell3.TabIndex = 25
            ' 
            ' textBoxCell4
            ' 
            textBoxCell4.Location = New System.Drawing.Point(240, 0)
            textBoxCell4.Name = "textBoxCell4"
            textBoxCell4.ResizeMode = ResizeMode.Both
            textBoxCell4.TabIndex = 26
            ' 
            ' textBoxCell5
            ' 
            textBoxCell5.Location = New System.Drawing.Point(320, 0)
            textBoxCell5.Name = "textBoxCell5"
            textBoxCell5.ResizeMode = ResizeMode.Both
            textBoxCell5.TabIndex = 27
            ' 
            ' textBoxCell6
            ' 
            textBoxCell6.Location = New System.Drawing.Point(240, 21)
            textBoxCell6.Name = "textBoxCell6"
            textBoxCell6.ResizeMode = ResizeMode.Both
            textBoxCell6.Size = New System.Drawing.Size(160, 21)
            textBoxCell6.TabIndex = 28
            ' 
            ' textBoxCell7
            ' 
            textBoxCell7.Location = New System.Drawing.Point(400, 0)
            textBoxCell7.Name = "textBoxCell7"
            textBoxCell7.ResizeMode = ResizeMode.Both
            textBoxCell7.TabIndex = 29
            ' 
            ' textBoxCell8
            ' 
            textBoxCell8.Location = New System.Drawing.Point(480, 0)
            textBoxCell8.Name = "textBoxCell8"
            textBoxCell8.ResizeMode = ResizeMode.Both
            textBoxCell8.TabIndex = 30
            ' 
            ' textBoxCell9
            ' 
            textBoxCell9.Location = New System.Drawing.Point(400, 21)
            textBoxCell9.Name = "textBoxCell9"
            textBoxCell9.ResizeMode = ResizeMode.Both
            textBoxCell9.Size = New System.Drawing.Size(160, 21)
            textBoxCell9.TabIndex = 31
            ' 
            ' TopToBottom3
            ' 
            template.ColumnHeaders.AddRange(New ColumnHeaderSection() {columnHeaderSection1})
            template.Height = 82
            template.Width = 560
            Return template
        End Function

        <STAThreadAttribute()> _
        Public Shared Sub Main()
            Application.EnableVisualStyles()
            Application.Run(New HighlightHeaderCellDemo)
        End Sub
    End Class
End Namespace
参照

GcMultiRow クラス
GcMultiRow メンバ

 

 


© 2008-2015 GrapeCity inc. All rights reserved.