Imports System.Drawing
Imports System.Windows.Forms
Imports Spread.Common.DataStore
Imports FarPoint.Win.Spread.Model
Imports FarPoint.Win.Spread
Imports Spread.Common.Features.Spread.Common.Features.Sample

Namespace Features
    Partial Public Class GroupBarDemo
        Inherits BaseSampleControl
        Private _dataSource As AccessDataSource

        Public Sub New()
            InitializeComponent()
            Name = "Outlook-style Group Bar"

            _dataSource = New DataService().AccessDataSource

            InitSpread()
            InitControls()
        End Sub

#Region "Private methods"
        Private Sub InitSpread()
            fpSpread.DataSource = _dataSource.GetNWINDData("Customers").Tables(0)

            fpSpread.AllowColumnMove = True
            fpSpread.ScrollBarTrackPolicy = ScrollBarTrackPolicy.Both
            fpSpread.Sheets(0).AllowGroup = True
            fpSpread.Sheets(0).GroupBarVisible = True

            For col As Integer = 0 To fpSpread.Sheets(0).ColumnCount - 1
                fpSpread.Sheets(0).Columns(col).Width = fpSpread.Sheets(0).GetPreferredColumnWidth(col, PreferredSizeColumnOptions.IncludeAll)
            Next

            fpSpread.Sheets(0).DefaultStyle.BackColor = Color.AliceBlue
        End Sub

        Private Sub InitControls()
            numericHeight.Value = fpSpread.ActiveSheet.GroupBarInfo.Height
            AddHandler numericHeight.ValueChanged, AddressOf NumericHeight_ValueChanged

            btnForeColor.BackColor = fpSpread.ActiveSheet.GroupBarInfo.ForeColor
            AddHandler btnForeColor.Click, AddressOf ShowColorDialog
            AddHandler btnForeColor.BackColorChanged, AddressOf BtnForeColor_BackColorChanged

            btnBackColor.BackColor = fpSpread.ActiveSheet.GroupBarInfo.BackColor
            AddHandler btnBackColor.Click, AddressOf ShowColorDialog
            AddHandler btnBackColor.BackColorChanged, AddressOf BtnBackColor_BackColorChanged

            AddHandler txtGroupText.TextChanged, AddressOf TxtGroupText_TextChanged
            AddHandler btnCreateGroup.Click, AddressOf BtnCreateGroup_Click
            AddHandler btnRemoveLastGroup.Click, AddressOf BtnRemoveLastGroup_Click
            AddHandler radioNotSet.CheckedChanged, AddressOf RadioNotSet_CheckedChanged
            AddHandler radioExpandAll.CheckedChanged, AddressOf RadioExpandAll_CheckedChanged
            AddHandler radioCollapseAll.CheckedChanged, AddressOf RadioCollapseAll_CheckedChanged
            AddHandler radioExpandParents.CheckedChanged, AddressOf RadioExpandParents_CheckedChanged
        End Sub
#End Region

#Region "Event handlers"
        Private Sub TxtGroupText_TextChanged(sender As Object, e As EventArgs)
            If txtGroupText.Text.Length = 0 Then
                fpSpread.ActiveSheet.GroupBarInfo.ResetText()
            Else
                fpSpread.ActiveSheet.GroupBarInfo.Text = txtGroupText.Text
            End If
        End Sub

#Region "Button Events"
        Private Sub BtnCreateGroup_Click(sender As Object, e As EventArgs)
            If (fpSpread.Sheets(0).Models.Data IsNot Nothing) AndAlso (TypeOf fpSpread.Sheets(0).Models.Data Is GroupDataModel) Then
                Dim gm As GroupDataModel = Nothing
                gm = TryCast(fpSpread.Sheets(0).Models.Data, GroupDataModel)
                If gm.SortInfo.Length < fpSpread.Sheets(0).GroupMaximumLevel Then
                    Dim n As Integer = gm.SortInfo.Length
                    Dim tmp As SortInfo() = New SortInfo(n) {}
                    Dim j As Integer = 0
                    Dim i As Integer = 0
                    While i < n
                        If gm.SortInfo(i).Index <> fpSpread.Sheets(0).GetModelColumnFromViewColumn(fpSpread.Sheets(0).ActiveColumnIndex) Then
                            tmp(j) = gm.SortInfo(i)
                        Else
                            Return
                        End If
                        tmp(j) = New SortInfo(fpSpread.Sheets(0).GetModelColumnFromViewColumn(fpSpread.Sheets(0).ActiveColumnIndex), True)
                        tmp(j + 1) = gm.SortInfo(i)
                        i = i + 1
                        j = j + 1
                    End While
                    tmp(j) = New SortInfo(fpSpread.Sheets(0).GetModelColumnFromViewColumn(fpSpread.Sheets(0).ActiveColumnIndex), True)
                    n = n + 1
                    If n > 1 Then
                        gm.Group(tmp, Nothing)
                    End If
                End If
            Else
                Dim gm As New GroupDataModel(fpSpread.Sheets(0).Models.Data)
                Dim si As SortInfo() = New SortInfo() {New SortInfo(fpSpread.Sheets(0).ActiveColumnIndex, True)}
                gm.Group(si)
                Try
                    fpSpread.Sheets(0).Models.Data = gm
                Catch ex As Exception
                    MessageBox.Show(ex.Message)
                End Try
            End If
        End Sub

        Private Sub BtnRemoveLastGroup_Click(sender As Object, e As EventArgs)
            Try
                If (fpSpread.Sheets(0).Models.Data IsNot Nothing) AndAlso (TypeOf fpSpread.Sheets(0).Models.Data Is GroupDataModel) Then
                    Dim gm As GroupDataModel = Nothing
                    gm = TryCast(fpSpread.Sheets(0).Models.Data, GroupDataModel)

                    Dim n As Integer = gm.SortInfo.Length
                    Dim tmp As SortInfo() = New SortInfo(n - 2) {}
                    Dim i As Integer = 0
                    While i < n - 1
                        tmp(i) = gm.SortInfo(i)
                        i = i + 1
                    End While
                    n = n - 1
                    If n >= 1 Then
                        gm.Group(tmp, Nothing)
                        Return
                    Else
                        fpSpread.Sheets(0).Models.Data = DirectCast(fpSpread.Sheets(0).Models.Data, GroupDataModel).TargetModel
                    End If

                End If
            Catch
            End Try
        End Sub

        Private Sub BtnForeColor_BackColorChanged(sender As Object, e As EventArgs)
            fpSpread.ActiveSheet.GroupBarInfo.ForeColor = TryCast(sender, Button).BackColor
        End Sub

        Private Sub BtnBackColor_BackColorChanged(sender As Object, e As EventArgs)
            fpSpread.ActiveSheet.GroupBarInfo.BackColor = TryCast(sender, Button).BackColor
        End Sub
#End Region

#Region "RadioButton Events"
        Private Sub RadioNotSet_CheckedChanged(sender As Object, e As EventArgs)
            If radioNotSet.Checked Then
                fpSpread.Sheets(0).GroupingPolicy = GroupingPolicy.NotSet
            End If
        End Sub

        Private Sub RadioExpandAll_CheckedChanged(sender As Object, e As EventArgs)
            If radioExpandAll.Checked Then
                fpSpread.Sheets(0).GroupingPolicy = GroupingPolicy.ExpandAll
            End If
        End Sub

        Private Sub RadioCollapseAll_CheckedChanged(sender As Object, e As EventArgs)
            If radioCollapseAll.Checked = True Then
                fpSpread.Sheets(0).GroupingPolicy = GroupingPolicy.CollapseAll
            End If
        End Sub

        Private Sub RadioExpandParents_CheckedChanged(sender As Object, e As EventArgs)
            If radioExpandParents.Checked = True Then
                fpSpread.Sheets(0).GroupingPolicy = GroupingPolicy.ExpandParents
            End If
        End Sub
#End Region

        Private Sub NumericHeight_ValueChanged(sender As Object, e As EventArgs)
            If numericHeight.Value > 0 Then
                fpSpread.ActiveSheet.GroupBarInfo.Height = Convert.ToInt32(numericHeight.Value)
            End If
        End Sub

        Private Sub ShowColorDialog(sender As Object, e As EventArgs)
            Dim dialog As New ColorDialog()
            dialog.Color = TryCast(sender, Button).BackColor
            If dialog.ShowDialog() = DialogResult.OK Then
                TryCast(sender, Button).BackColor = dialog.Color
            End If
        End Sub
#End Region
    End Class
End Namespace

'
'GroupBarDemo.Designer.vb
'

Namespace Features
	Partial Class GroupBarDemo
		''' <summary> 
		''' Required designer variable.
		''' </summary>
		Private components As System.ComponentModel.IContainer = Nothing

        ''' <summary> 
        ''' Clean up any resources being used.
        ''' </summary>
        ''' <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        Protected Shadows Sub Dispose(disposing As Boolean)
            If disposing AndAlso (components IsNot Nothing) Then
                components.Dispose()
            End If
            MyBase.Dispose(disposing)
        End Sub

#Region "Component Designer generated code"

        ''' <summary> 
        ''' Required method for Designer support - do not modify 
        ''' the contents of this method with the code editor.
        ''' </summary>
        Private Sub InitializeComponent()
			Me.fpSpread = New FarPoint.Win.Spread.FpSpread()
			Me.fpSpread_Sheet1 = New FarPoint.Win.Spread.SheetView()
			Me.groupBox1 = New System.Windows.Forms.GroupBox()
			Me.tableLayoutPanel1 = New System.Windows.Forms.TableLayoutPanel()
			Me.btnCreateGroup = New System.Windows.Forms.Button()
			Me.btnRemoveLastGroup = New System.Windows.Forms.Button()
			Me.groupBox2 = New System.Windows.Forms.GroupBox()
			Me.radioNotSet = New System.Windows.Forms.RadioButton()
			Me.radioExpandAll = New System.Windows.Forms.RadioButton()
			Me.radioCollapseAll = New System.Windows.Forms.RadioButton()
			Me.radioExpandParents = New System.Windows.Forms.RadioButton()
			Me.groupBox3 = New System.Windows.Forms.GroupBox()
			Me.label1 = New System.Windows.Forms.Label()
			Me.label2 = New System.Windows.Forms.Label()
			Me.txtGroupText = New System.Windows.Forms.TextBox()
			Me.numericHeight = New System.Windows.Forms.NumericUpDown()
			Me.label3 = New System.Windows.Forms.Label()
			Me.btnForeColor = New System.Windows.Forms.Button()
			Me.label4 = New System.Windows.Forms.Label()
			Me.btnBackColor = New System.Windows.Forms.Button()
			Me.pnlMain.SuspendLayout()
			Me.pnlControls.SuspendLayout()
			DirectCast(Me.fpSpread, System.ComponentModel.ISupportInitialize).BeginInit()
			DirectCast(Me.fpSpread_Sheet1, System.ComponentModel.ISupportInitialize).BeginInit()
			Me.groupBox1.SuspendLayout()
			Me.tableLayoutPanel1.SuspendLayout()
			Me.groupBox2.SuspendLayout()
			Me.groupBox3.SuspendLayout()
			DirectCast(Me.numericHeight, System.ComponentModel.ISupportInitialize).BeginInit()
			Me.SuspendLayout()
			' 
			' pnlMain
			' 
			Me.pnlMain.Controls.Add(Me.fpSpread)
			' 
			' pnlControls
			' 
			Me.pnlControls.Controls.Add(Me.groupBox3)
			Me.pnlControls.Controls.Add(Me.groupBox2)
			Me.pnlControls.Controls.Add(Me.groupBox1)
			' 
			' fpSpread
			' 
			Me.fpSpread.Dock = System.Windows.Forms.DockStyle.Fill
			Me.fpSpread.Location = New System.Drawing.Point(0, 0)
			Me.fpSpread.Name = "fpSpread"
			Me.fpSpread.Sheets.AddRange(New FarPoint.Win.Spread.SheetView() {Me.fpSpread_Sheet1})
			Me.fpSpread.Size = New System.Drawing.Size(477, 487)
			Me.fpSpread.Skin = FarPoint.Win.Spread.DefaultSpreadSkins.Office2016White
			Me.fpSpread.StatusBarVisible = True
			Me.fpSpread.TabIndex = 0
			' 
			' fpSpread_Sheet1
			' 
			Me.fpSpread_Sheet1.Reset()
			Me.fpSpread_Sheet1.SheetName = "Sheet1"
			' Formulas and custom names must be loaded with R1C1 reference style
			Me.fpSpread_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1
			Me.fpSpread_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1
			' 
			' groupBox1
			' 
			Me.groupBox1.Controls.Add(Me.tableLayoutPanel1)
			Me.groupBox1.Dock = System.Windows.Forms.DockStyle.Top
			Me.groupBox1.Location = New System.Drawing.Point(0, 0)
			Me.groupBox1.Name = "groupBox1"
			Me.groupBox1.Size = New System.Drawing.Size(157, 49)
			Me.groupBox1.TabIndex = 0
			Me.groupBox1.TabStop = False
			Me.groupBox1.Text = "Groups"
			' 
			' tableLayoutPanel1
			' 
			Me.tableLayoutPanel1.ColumnCount = 2
			Me.tableLayoutPanel1.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F))
			Me.tableLayoutPanel1.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F))
			Me.tableLayoutPanel1.Controls.Add(Me.btnCreateGroup, 0, 0)
			Me.tableLayoutPanel1.Controls.Add(Me.btnRemoveLastGroup, 1, 0)
			Me.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill
			Me.tableLayoutPanel1.Location = New System.Drawing.Point(3, 16)
			Me.tableLayoutPanel1.Name = "tableLayoutPanel1"
			Me.tableLayoutPanel1.RowCount = 1
			Me.tableLayoutPanel1.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F))
			Me.tableLayoutPanel1.Size = New System.Drawing.Size(151, 30)
			Me.tableLayoutPanel1.TabIndex = 0
			' 
			' btnCreateGroup
			' 
			Me.btnCreateGroup.Dock = System.Windows.Forms.DockStyle.Fill
			Me.btnCreateGroup.Location = New System.Drawing.Point(3, 3)
			Me.btnCreateGroup.Name = "btnCreateGroup"
			Me.btnCreateGroup.Size = New System.Drawing.Size(69, 24)
			Me.btnCreateGroup.TabIndex = 0
			Me.btnCreateGroup.Text = "Create Group"
			Me.btnCreateGroup.UseVisualStyleBackColor = True
			' 
			' btnRemoveLastGroup
			' 
			Me.btnRemoveLastGroup.Dock = System.Windows.Forms.DockStyle.Fill
			Me.btnRemoveLastGroup.Location = New System.Drawing.Point(78, 3)
			Me.btnRemoveLastGroup.Name = "btnRemoveLastGroup"
			Me.btnRemoveLastGroup.Size = New System.Drawing.Size(70, 24)
			Me.btnRemoveLastGroup.TabIndex = 1
			Me.btnRemoveLastGroup.Text = "Remove Last Group"
			Me.btnRemoveLastGroup.UseVisualStyleBackColor = True
			' 
			' groupBox2
			' 
			Me.groupBox2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
			Me.groupBox2.Controls.Add(Me.radioExpandParents)
			Me.groupBox2.Controls.Add(Me.radioCollapseAll)
			Me.groupBox2.Controls.Add(Me.radioExpandAll)
			Me.groupBox2.Controls.Add(Me.radioNotSet)
			Me.groupBox2.Location = New System.Drawing.Point(3, 68)
			Me.groupBox2.Name = "groupBox2"
			Me.groupBox2.Size = New System.Drawing.Size(151, 117)
			Me.groupBox2.TabIndex = 1
			Me.groupBox2.TabStop = False
			Me.groupBox2.Text = "Grouping Policy"
			' 
			' radioNotSet
			' 
			Me.radioNotSet.AutoSize = True
			Me.radioNotSet.Checked = True
			Me.radioNotSet.Location = New System.Drawing.Point(6, 19)
			Me.radioNotSet.Name = "radioNotSet"
			Me.radioNotSet.Size = New System.Drawing.Size(61, 17)
			Me.radioNotSet.TabIndex = 0
			Me.radioNotSet.TabStop = True
			Me.radioNotSet.Text = "Not Set"
			Me.radioNotSet.UseVisualStyleBackColor = True
			' 
			' radioExpandAll
			' 
			Me.radioExpandAll.AutoSize = True
			Me.radioExpandAll.Location = New System.Drawing.Point(6, 42)
			Me.radioExpandAll.Name = "radioExpandAll"
			Me.radioExpandAll.Size = New System.Drawing.Size(75, 17)
			Me.radioExpandAll.TabIndex = 1
			Me.radioExpandAll.TabStop = True
			Me.radioExpandAll.Text = "Expand All"
			Me.radioExpandAll.UseVisualStyleBackColor = True
			' 
			' radioCollapseAll
			' 
			Me.radioCollapseAll.AutoSize = True
			Me.radioCollapseAll.Location = New System.Drawing.Point(6, 65)
			Me.radioCollapseAll.Name = "radioCollapseAll"
			Me.radioCollapseAll.Size = New System.Drawing.Size(79, 17)
			Me.radioCollapseAll.TabIndex = 2
			Me.radioCollapseAll.TabStop = True
			Me.radioCollapseAll.Text = "Collapse All"
			Me.radioCollapseAll.UseVisualStyleBackColor = True
			' 
			' radioExpandParents
			' 
			Me.radioExpandParents.AutoSize = True
			Me.radioExpandParents.Location = New System.Drawing.Point(6, 88)
			Me.radioExpandParents.Name = "radioExpandParents"
			Me.radioExpandParents.Size = New System.Drawing.Size(100, 17)
			Me.radioExpandParents.TabIndex = 3
			Me.radioExpandParents.TabStop = True
			Me.radioExpandParents.Text = "Expand Parents"
			Me.radioExpandParents.UseVisualStyleBackColor = True
			' 
			' groupBox3
			' 
			Me.groupBox3.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
			Me.groupBox3.Controls.Add(Me.btnBackColor)
			Me.groupBox3.Controls.Add(Me.label4)
			Me.groupBox3.Controls.Add(Me.btnForeColor)
			Me.groupBox3.Controls.Add(Me.label3)
			Me.groupBox3.Controls.Add(Me.numericHeight)
			Me.groupBox3.Controls.Add(Me.txtGroupText)
			Me.groupBox3.Controls.Add(Me.label2)
			Me.groupBox3.Controls.Add(Me.label1)
			Me.groupBox3.Location = New System.Drawing.Point(3, 197)
			Me.groupBox3.Name = "groupBox3"
			Me.groupBox3.Size = New System.Drawing.Size(151, 154)
			Me.groupBox3.TabIndex = 2
			Me.groupBox3.TabStop = False
			Me.groupBox3.Text = "GroupBar"
			' 
			' label1
			' 
			Me.label1.AutoSize = True
			Me.label1.Location = New System.Drawing.Point(7, 20)
			Me.label1.Name = "label1"
			Me.label1.Size = New System.Drawing.Size(31, 13)
			Me.label1.TabIndex = 0
			Me.label1.Text = "Text:"
			' 
			' label2
			' 
			Me.label2.AutoSize = True
			Me.label2.Location = New System.Drawing.Point(7, 49)
			Me.label2.Name = "label2"
			Me.label2.Size = New System.Drawing.Size(41, 13)
			Me.label2.TabIndex = 1
			Me.label2.Text = "Height:"
			' 
			' txtGroupText
			' 
			Me.txtGroupText.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
			Me.txtGroupText.Location = New System.Drawing.Point(67, 17)
			Me.txtGroupText.Name = "txtGroupText"
			Me.txtGroupText.Size = New System.Drawing.Size(81, 20)
			Me.txtGroupText.TabIndex = 2
			' 
			' numericHeight
			' 
			Me.numericHeight.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
			Me.numericHeight.Location = New System.Drawing.Point(67, 47)
			Me.numericHeight.Name = "numericHeight"
			Me.numericHeight.Size = New System.Drawing.Size(81, 20)
			Me.numericHeight.TabIndex = 3
			' 
			' label3
			' 
			Me.label3.AutoSize = True
			Me.label3.Location = New System.Drawing.Point(7, 87)
			Me.label3.Name = "label3"
			Me.label3.Size = New System.Drawing.Size(55, 13)
			Me.label3.TabIndex = 4
			Me.label3.Text = "ForeColor:"
			' 
			' btnForeColor
			' 
			Me.btnForeColor.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
			Me.btnForeColor.Location = New System.Drawing.Point(67, 82)
			Me.btnForeColor.Name = "btnForeColor"
			Me.btnForeColor.Size = New System.Drawing.Size(81, 23)
			Me.btnForeColor.TabIndex = 5
			Me.btnForeColor.UseVisualStyleBackColor = True
			' 
			' label4
			' 
			Me.label4.AutoSize = True
			Me.label4.Location = New System.Drawing.Point(7, 118)
			Me.label4.Name = "label4"
			Me.label4.Size = New System.Drawing.Size(59, 13)
			Me.label4.TabIndex = 6
			Me.label4.Text = "BackColor:"
			' 
			' btnBackColor
			' 
			Me.btnBackColor.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
			Me.btnBackColor.Location = New System.Drawing.Point(67, 113)
			Me.btnBackColor.Name = "btnBackColor"
			Me.btnBackColor.Size = New System.Drawing.Size(81, 23)
			Me.btnBackColor.TabIndex = 7
			Me.btnBackColor.UseVisualStyleBackColor = True
			' 
			' GroupBarDemo
			' 
			Me.AutoScaleDimensions = New System.Drawing.SizeF(6F, 13F)
			Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
			Me.Name = "GroupBarDemo"
			Me.pnlMain.ResumeLayout(False)
			Me.pnlControls.ResumeLayout(False)
			DirectCast(Me.fpSpread, System.ComponentModel.ISupportInitialize).EndInit()
			DirectCast(Me.fpSpread_Sheet1, System.ComponentModel.ISupportInitialize).EndInit()
			Me.groupBox1.ResumeLayout(False)
			Me.tableLayoutPanel1.ResumeLayout(False)
			Me.groupBox2.ResumeLayout(False)
			Me.groupBox2.PerformLayout()
			Me.groupBox3.ResumeLayout(False)
			Me.groupBox3.PerformLayout()
			DirectCast(Me.numericHeight, System.ComponentModel.ISupportInitialize).EndInit()
			Me.ResumeLayout(False)

		End Sub

		#End Region

		Private fpSpread As FarPoint.Win.Spread.FpSpread
		Private fpSpread_Sheet1 As FarPoint.Win.Spread.SheetView
		Private groupBox1 As System.Windows.Forms.GroupBox
		Private tableLayoutPanel1 As System.Windows.Forms.TableLayoutPanel
		Private btnCreateGroup As System.Windows.Forms.Button
		Private btnRemoveLastGroup As System.Windows.Forms.Button
		Private groupBox3 As System.Windows.Forms.GroupBox
		Private btnBackColor As System.Windows.Forms.Button
		Private label4 As System.Windows.Forms.Label
		Private btnForeColor As System.Windows.Forms.Button
		Private label3 As System.Windows.Forms.Label
		Private numericHeight As System.Windows.Forms.NumericUpDown
		Private txtGroupText As System.Windows.Forms.TextBox
		Private label2 As System.Windows.Forms.Label
		Private label1 As System.Windows.Forms.Label
		Private groupBox2 As System.Windows.Forms.GroupBox
		Private radioExpandParents As System.Windows.Forms.RadioButton
		Private radioCollapseAll As System.Windows.Forms.RadioButton
		Private radioExpandAll As System.Windows.Forms.RadioButton
		Private radioNotSet As System.Windows.Forms.RadioButton
	End Class
End Namespace
