'宣言 Public ReadOnly Property GroupSettings As UltraExplorerBarGroupSettings
public UltraExplorerBarGroupSettings GroupSettings {get;}
UltraExplorerBarGroupSettings オブジェクトの各プロパティはデフォルト値で初期化されています。
各プロパティで最終的に使用される実際の値は、各 UltraExplorerBarGroupSettings オブジェクトのプロパティの値を、解決チェーン (UltraExplorerBarGroup、および UltraExplorerBar) を上にたどりながら解決することで決定されます。
チェイン上のすべての値がデフォルトに設定されている場合は、適切なデフォルトが提供されます。
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; } }