'宣言 Public Property SplitterBarHorizontalAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase SplitterBarHorizontalAppearance {get; set;}
これは、行スクロールリージョンを分割するための分割ボックスと、分割された行スクロールリージョンの間に表示される分割バーに適用されます。
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click ' Split the column-scroll-region and the row-scroll-region each. Me.UltraGrid1.DisplayLayout.ColScrollRegions(0).Split() Me.UltraGrid1.DisplayLayout.RowScrollRegions(0).Split() ' Set the max regions the grid can have preventing the user from splitting ' any more than the max. Me.UltraGrid1.DisplayLayout.MaxColScrollRegions = 2 Me.UltraGrid1.DisplayLayout.MaxRowScrollRegions = 2 ' Set the sizing mode to Fixed, so the user can't resize the scroll regions. Me.UltraGrid1.DisplayLayout.RowScrollRegions(0).SizingMode = SizingMode.Fixed Me.UltraGrid1.DisplayLayout.RowScrollRegions(1).SizingMode = SizingMode.Fixed Me.UltraGrid1.DisplayLayout.ColScrollRegions(0).SizingMode = SizingMode.Fixed Me.UltraGrid1.DisplayLayout.ColScrollRegions(1).SizingMode = SizingMode.Fixed ' You can also change the appearnace of splitter bars. Me.UltraGrid1.DisplayLayout.SplitterBarHorizontalAppearance.BackColor = Color.Blue Me.UltraGrid1.DisplayLayout.SplitterBarVerticalAppearance.BackColor = Color.Blue End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button1_Click(object sender, System.EventArgs e) { // Split the column-scroll-region and the row-scroll-region each. this.ultraGrid1.DisplayLayout.ColScrollRegions[0].Split( ); this.ultraGrid1.DisplayLayout.RowScrollRegions[0].Split( ); // Set the max regions the grid can have preventing the user from splitting // any more than the max. this.ultraGrid1.DisplayLayout.MaxColScrollRegions = 2; this.ultraGrid1.DisplayLayout.MaxRowScrollRegions = 2; // Set the sizing mode to Fixed, so the user can't resize the scroll regions. this.ultraGrid1.DisplayLayout.RowScrollRegions[0].SizingMode = SizingMode.Fixed; this.ultraGrid1.DisplayLayout.RowScrollRegions[1].SizingMode = SizingMode.Fixed; this.ultraGrid1.DisplayLayout.ColScrollRegions[0].SizingMode = SizingMode.Fixed; this.ultraGrid1.DisplayLayout.ColScrollRegions[1].SizingMode = SizingMode.Fixed; // You can also change the appearnace of splitter bars. this.ultraGrid1.DisplayLayout.SplitterBarHorizontalAppearance.BackColor = Color.Blue; this.ultraGrid1.DisplayLayout.SplitterBarVerticalAppearance.BackColor = Color.Blue; }