注: グループの一部でもコントロールの表示可能な領域内に含まれている場合、IsInView プロパティは True を返します。グループの UIElement プロパティは、グループがフル表示であるかどうかを決定するために使用できます。
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinExplorerBar Private Sub Button29_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button29.Click ' For Groups that are not currently in view, reset the Group's appearance properties to ' their default setttings. Dim i As Integer For i = 0 To Me.ultraExplorerBar1.Groups.Count - 1 If (Me.ultraExplorerBar1.Groups(i).IsInView = False) Then Me.ultraExplorerBar1.Groups(i).Settings.AppearancesSmall.Appearance.Reset() End If Next End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button29_Click(object sender, System.EventArgs e) { // For Groups that are not currently in view, reset the Group's appearance properties to // their default setttings. for (int i = 0; i < this.ultraExplorerBar1.Groups.Count; i++) { if (this.ultraExplorerBar1.Groups[i].IsInView == false) this.ultraExplorerBar1.Groups[i].Settings.AppearancesSmall.Appearance.Reset(); } }