'宣言 Public Property Container As UltraExplorerBarContainerControl
public UltraExplorerBarContainerControl Container {get; set;}
注:UltraExplorerBarItem をチェックするためには、そのStyleプロパティを「1 - StateButton」に設定する必要があります。
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinExplorerBar Private Sub Button27_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button27.Click ' For every Group that has the ControlContainer style, set the backcolor of the container to red. Dim group As UltraExplorerBarGroup For Each group In Me.ultraExplorerBar1.Groups If (group.SettingsResolved.Style = GroupStyle.ControlContainer) Then group.Container.BackColor = Color.Red End If Next End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button27_Click(object sender, System.EventArgs e) { // For every Group that has the ControlContainer style, set the backcolor of the container to red. foreach(UltraExplorerBarGroup group in this.ultraExplorerBar1.Groups) { if (group.SettingsResolved.Style == GroupStyle.ControlContainer) group.Container.BackColor = Color.Red; } }