'宣言 Public Property UseLargeGroupHeaderImages As Infragistics.Win.DefaultableBoolean
public Infragistics.Win.DefaultableBoolean UseLargeGroupHeaderImages {get; set;}
このプロパティを「0 - Default」に設定すると、コントロールスタイルが「0 - ExplorerBar」の場合はTrueに、それ以外のコントロールスタイルの場合はFalseに解決されます。
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinExplorerBar Private Sub Button15_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button15.Click ' Set the UseLargeGroupHeaderImages property to 'Default', then test UseLargeGroupHeaderImagesResolved ' below for each of the control styles. Me.ultraExplorerBar1.UseLargeGroupHeaderImages = DefaultableBoolean.Default ' When we set the control style to ExplorerBar, UseLargeGroupHeaderImagesResolved will return true. Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.ExplorerBar Debug.WriteLine("UseLargeGroupHeaderImagesResolved = " + Me.ultraExplorerBar1.UseLargeGroupHeaderImagesResolved.ToString()) ' When we set the control style to Listbar, UseLargeGroupHeaderImagesResolved will return false. Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar Debug.WriteLine("UseLargeGroupHeaderImagesResolved = " + Me.ultraExplorerBar1.UseLargeGroupHeaderImagesResolved.ToString()) ' When we set the control style to Toolbox, UseLargeGroupHeaderImagesResolved will return false. Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.Toolbox Debug.WriteLine("UseLargeGroupHeaderImagesResolved = " + Me.ultraExplorerBar1.UseLargeGroupHeaderImagesResolved.ToString()) ' Of course, we can explicitly set the UseLargeGroupHeaderImages property to either true or false for ' any control style to override the default. Me.ultraExplorerBar1.UseLargeGroupHeaderImages = DefaultableBoolean.True ' When we set the control style to Listbar, UseLargeGroupHeaderImagesResolved now returns true Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar Debug.WriteLine("UseLargeGroupHeaderImagesResolved = " + Me.ultraExplorerBar1.UseLargeGroupHeaderImagesResolved.ToString()) End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button15_Click(object sender, System.EventArgs e) { // Set the UseLargeGroupHeaderImages property to 'Default', then test UseLargeGroupHeaderImagesResolved // below for each of the control styles. this.ultraExplorerBar1.UseLargeGroupHeaderImages = DefaultableBoolean.Default; // When we set the control style to ExplorerBar, UseLargeGroupHeaderImagesResolved will return true. this.ultraExplorerBar1.Style = UltraExplorerBarStyle.ExplorerBar; Debug.WriteLine("UseLargeGroupHeaderImagesResolved = " + this.ultraExplorerBar1.UseLargeGroupHeaderImagesResolved.ToString()); // When we set the control style to Listbar, UseLargeGroupHeaderImagesResolved will return false. this.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar; Debug.WriteLine("UseLargeGroupHeaderImagesResolved = " + this.ultraExplorerBar1.UseLargeGroupHeaderImagesResolved.ToString()); // When we set the control style to Toolbox, UseLargeGroupHeaderImagesResolved will return false. this.ultraExplorerBar1.Style = UltraExplorerBarStyle.Toolbox; Debug.WriteLine("UseLargeGroupHeaderImagesResolved = " + this.ultraExplorerBar1.UseLargeGroupHeaderImagesResolved.ToString()); // Of course, we can explicitly set the UseLargeGroupHeaderImages property to either true or false for // any control style to override the default. this.ultraExplorerBar1.UseLargeGroupHeaderImages = DefaultableBoolean.True; // When we set the control style to Listbar, UseLargeGroupHeaderImagesResolved now returns true; this.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar; Debug.WriteLine("UseLargeGroupHeaderImagesResolved = " + this.ultraExplorerBar1.UseLargeGroupHeaderImagesResolved.ToString()); }