GroupSettings オブジェクトと同じプロパティを含む GroupSettingsResolved オブジェクト。このオブジェクトを使用することで、GroupSettingsオブジェクトの特定の設定について有効な値を確認できます。GroupSettingsオブジェクトの一部のプロパティは「use default」値に設定できます。 これは、Groupで有効な設定が、Groupレベルで明示的に設定されるのではなく、継承されることを示します。これらのプロパティについては、どの設定が実際にGroupに適用されているのかを確認できません。ただし、GroupSettingsResolved オブジェクトのプロパティは常に有効な値を返すため、これを使用することで Group の外観または動作を確認できます。
プロパティ設定をGroupレベルで確認し、Groupで有効な設定に基づいてアクションを実行する場合は、比較の際に有効な値を常に使用するため、GroupSettingsResolvedオブジェクトを通じてプロパティにアクセスしてください。
'宣言 Public Class UltraExplorerBarGroupSettingsResolved
public class UltraExplorerBarGroupSettingsResolved
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinExplorerBar Private Sub button89_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button89.Click ' Modify some of the default Group settings specified at the control level. These ' GroupSettings apply to all Groups. We will then override the settings for a ' specific Group below. Me.ultraExplorerBar1.GroupSettings.AllowEdit = DefaultableBoolean.False Me.ultraExplorerBar1.GroupSettings.AllowDrag = DefaultableBoolean.False Me.ultraExplorerBar1.GroupSettings.AllowItemDrop = DefaultableBoolean.False Me.ultraExplorerBar1.GroupSettings.AllowItemUncheck = DefaultableBoolean.False Me.ultraExplorerBar1.GroupSettings.BorderStyleItemArea = UIElementBorderStyle.None Me.ultraExplorerBar1.GroupSettings.ContainerHeight = 100 Me.ultraExplorerBar1.GroupSettings.HeaderButtonStyle = UIElementButtonStyle.Button Me.ultraExplorerBar1.GroupSettings.HeaderVisible = DefaultableBoolean.False Me.ultraExplorerBar1.GroupSettings.HotTracking = DefaultableBoolean.False Me.ultraExplorerBar1.GroupSettings.MaxLines = 5 Me.ultraExplorerBar1.GroupSettings.ShowToolTips = DefaultableBoolean.False Me.ultraExplorerBar1.GroupSettings.Style = GroupStyle.SmallImages Me.ultraExplorerBar1.GroupSettings.UseMnemonics = DefaultableBoolean.False ' Override the default Item settings set at the control level above for the ' items in the first Group. If (Me.ultraExplorerBar1.Groups.Count > 0) Then Me.ultraExplorerBar1.Groups(0).Settings.AllowEdit = DefaultableBoolean.True Me.ultraExplorerBar1.Groups(0).Settings.AllowDrag = DefaultableBoolean.True Me.ultraExplorerBar1.Groups(0).Settings.AllowItemDrop = DefaultableBoolean.True Me.ultraExplorerBar1.Groups(0).Settings.AllowItemUncheck = DefaultableBoolean.True Me.ultraExplorerBar1.Groups(0).Settings.BorderStyleItemArea = UIElementBorderStyle.Dashed Me.ultraExplorerBar1.Groups(0).Settings.ContainerHeight = 200 Me.ultraExplorerBar1.Groups(0).Settings.HeaderButtonStyle = UIElementButtonStyle.WindowsXPCommandButton Me.ultraExplorerBar1.Groups(0).Settings.HeaderVisible = DefaultableBoolean.True Me.ultraExplorerBar1.Groups(0).Settings.HotTracking = DefaultableBoolean.True Me.ultraExplorerBar1.Groups(0).Settings.MaxLines = 2 Me.ultraExplorerBar1.Groups(0).Settings.ShowToolTips = DefaultableBoolean.True Me.ultraExplorerBar1.Groups(0).Settings.Style = GroupStyle.LargeImagesWithText Me.ultraExplorerBar1.Groups(0).Settings.UseMnemonics = DefaultableBoolean.True End If End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button89_Click(object sender, System.EventArgs e) { // Modify some of the default Group settings specified at the control level. These // GroupSettings apply to all Groups. We will then override the settings for a // specific Group below. this.ultraExplorerBar1.GroupSettings.AllowEdit = DefaultableBoolean.False; this.ultraExplorerBar1.GroupSettings.AllowDrag = DefaultableBoolean.False; this.ultraExplorerBar1.GroupSettings.AllowItemDrop = DefaultableBoolean.False; this.ultraExplorerBar1.GroupSettings.AllowItemUncheck = DefaultableBoolean.False; this.ultraExplorerBar1.GroupSettings.BorderStyleItemArea = UIElementBorderStyle.None; this.ultraExplorerBar1.GroupSettings.ContainerHeight = 100; this.ultraExplorerBar1.GroupSettings.HeaderButtonStyle = UIElementButtonStyle.Button; this.ultraExplorerBar1.GroupSettings.HeaderVisible = DefaultableBoolean.False; this.ultraExplorerBar1.GroupSettings.HotTracking = DefaultableBoolean.False; this.ultraExplorerBar1.GroupSettings.MaxLines = 5; this.ultraExplorerBar1.GroupSettings.ShowToolTips = DefaultableBoolean.False; this.ultraExplorerBar1.GroupSettings.Style = GroupStyle.SmallImages; this.ultraExplorerBar1.GroupSettings.UseMnemonics = DefaultableBoolean.False; // Override the default Item settings set at the control level above for the // items in the first Group. if (this.ultraExplorerBar1.Groups.Count > 0) { this.ultraExplorerBar1.Groups[0].Settings.AllowEdit = DefaultableBoolean.True; this.ultraExplorerBar1.Groups[0].Settings.AllowDrag = DefaultableBoolean.True; this.ultraExplorerBar1.Groups[0].Settings.AllowItemDrop = DefaultableBoolean.True; this.ultraExplorerBar1.Groups[0].Settings.AllowItemUncheck = DefaultableBoolean.True; this.ultraExplorerBar1.Groups[0].Settings.BorderStyleItemArea = UIElementBorderStyle.Dashed; this.ultraExplorerBar1.Groups[0].Settings.ContainerHeight = 200; this.ultraExplorerBar1.Groups[0].Settings.HeaderButtonStyle = UIElementButtonStyle.WindowsXPCommandButton; this.ultraExplorerBar1.Groups[0].Settings.HeaderVisible = DefaultableBoolean.True; this.ultraExplorerBar1.Groups[0].Settings.HotTracking = DefaultableBoolean.True; this.ultraExplorerBar1.Groups[0].Settings.MaxLines = 2; this.ultraExplorerBar1.Groups[0].Settings.ShowToolTips = DefaultableBoolean.True; this.ultraExplorerBar1.Groups[0].Settings.Style = GroupStyle.LargeImagesWithText; this.ultraExplorerBar1.Groups[0].Settings.UseMnemonics = DefaultableBoolean.True; } }