'宣言 Public ReadOnly Property ItemSettings As UltraExplorerBarItemSettings
public UltraExplorerBarItemSettings ItemSettings {get;}
UltraExplorerBarItemSettings オブジェクトの各プロパティはデフォルト値で初期化されています。
各プロパティで最終的に使用される実際の値は、各 UltraExplorerBarItemSettings オブジェクトのプロパティの値を、解決チェーン(UltraExplorerBarGroup、UltraExplorerBarItem、および UltraExplorerBar)を上にたどりながら解決することで決定されます。
チェイン上のすべての値がデフォルトに設定されている場合は、適切なデフォルトが提供されます。
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinExplorerBar Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button9.Click ' Modify some of the default Item settings specified at the control level. These ' ItemSettings apply to all Items in all Groups. We will then override ' the settings for Items in a specific Group below. Me.ultraExplorerBar1.ItemSettings.AllowEdit = DefaultableBoolean.False Me.ultraExplorerBar1.ItemSettings.AllowDragCopy = ItemDragStyle.None Me.ultraExplorerBar1.ItemSettings.AllowDragMove = ItemDragStyle.None Me.ultraExplorerBar1.ItemSettings.Enabled = DefaultableBoolean.False Me.ultraExplorerBar1.ItemSettings.Height = 18 Me.ultraExplorerBar1.ItemSettings.HotTrackBorderStyle = UIElementBorderStyle.None Me.ultraExplorerBar1.ItemSettings.HotTracking = DefaultableBoolean.False Me.ultraExplorerBar1.ItemSettings.HotTrackStyle = ItemHotTrackStyle.HighlightText Me.ultraExplorerBar1.ItemSettings.Indent = 5 Me.ultraExplorerBar1.ItemSettings.MaxLines = 5 Me.ultraExplorerBar1.ItemSettings.SeparatorStyle = SeparatorStyle.Horizontal Me.ultraExplorerBar1.ItemSettings.ShowToolTips = DefaultableBoolean.False Me.ultraExplorerBar1.ItemSettings.Style = ItemStyle.StateButton Me.ultraExplorerBar1.ItemSettings.UseDefaultImage = DefaultableBoolean.True Me.ultraExplorerBar1.ItemSettings.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).ItemSettings.AllowEdit = DefaultableBoolean.True Me.ultraExplorerBar1.Groups(0).ItemSettings.AllowDragCopy = ItemDragStyle.WithinGroupOnly Me.ultraExplorerBar1.Groups(0).ItemSettings.AllowDragMove = ItemDragStyle.WithinGroupOnly Me.ultraExplorerBar1.Groups(0).ItemSettings.Enabled = DefaultableBoolean.True Me.ultraExplorerBar1.Groups(0).ItemSettings.Height = 22 Me.ultraExplorerBar1.Groups(0).ItemSettings.HotTrackBorderStyle = UIElementBorderStyle.Dotted Me.ultraExplorerBar1.Groups(0).ItemSettings.HotTracking = DefaultableBoolean.True Me.ultraExplorerBar1.Groups(0).ItemSettings.HotTrackStyle = ItemHotTrackStyle.HighlightEntireItem Me.ultraExplorerBar1.Groups(0).ItemSettings.Indent = 0 Me.ultraExplorerBar1.Groups(0).ItemSettings.MaxLines = 3 Me.ultraExplorerBar1.Groups(0).ItemSettings.SeparatorStyle = SeparatorStyle.Vertical Me.ultraExplorerBar1.Groups(0).ItemSettings.ShowToolTips = DefaultableBoolean.True Me.ultraExplorerBar1.Groups(0).ItemSettings.Style = ItemStyle.Button Me.ultraExplorerBar1.Groups(0).ItemSettings.UseDefaultImage = DefaultableBoolean.False Me.ultraExplorerBar1.Groups(0).ItemSettings.UseMnemonics = DefaultableBoolean.True End If End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button9_Click(object sender, System.EventArgs e) { // Modify some of the default Item settings specified at the control level. These // ItemSettings apply to all Items in all Groups. We will then override // the settings for Items in a specific Group below. this.ultraExplorerBar1.ItemSettings.AllowEdit = DefaultableBoolean.False; this.ultraExplorerBar1.ItemSettings.AllowDragCopy = ItemDragStyle.None; this.ultraExplorerBar1.ItemSettings.AllowDragMove = ItemDragStyle.None; this.ultraExplorerBar1.ItemSettings.Enabled = DefaultableBoolean.False; this.ultraExplorerBar1.ItemSettings.Height = 18; this.ultraExplorerBar1.ItemSettings.HotTrackBorderStyle = UIElementBorderStyle.None; this.ultraExplorerBar1.ItemSettings.HotTracking = DefaultableBoolean.False; this.ultraExplorerBar1.ItemSettings.HotTrackStyle = ItemHotTrackStyle.HighlightText; this.ultraExplorerBar1.ItemSettings.Indent = 5; this.ultraExplorerBar1.ItemSettings.MaxLines = 5; this.ultraExplorerBar1.ItemSettings.SeparatorStyle = SeparatorStyle.Horizontal; this.ultraExplorerBar1.ItemSettings.ShowToolTips = DefaultableBoolean.False; this.ultraExplorerBar1.ItemSettings.Style = ItemStyle.StateButton; this.ultraExplorerBar1.ItemSettings.UseDefaultImage = DefaultableBoolean.True; this.ultraExplorerBar1.ItemSettings.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].ItemSettings.AllowEdit = DefaultableBoolean.True; this.ultraExplorerBar1.Groups[0].ItemSettings.AllowDragCopy = ItemDragStyle.WithinGroupOnly; this.ultraExplorerBar1.Groups[0].ItemSettings.AllowDragMove = ItemDragStyle.WithinGroupOnly; this.ultraExplorerBar1.Groups[0].ItemSettings.Enabled = DefaultableBoolean.True; this.ultraExplorerBar1.Groups[0].ItemSettings.Height = 22; this.ultraExplorerBar1.Groups[0].ItemSettings.HotTrackBorderStyle = UIElementBorderStyle.Dotted; this.ultraExplorerBar1.Groups[0].ItemSettings.HotTracking = DefaultableBoolean.True; this.ultraExplorerBar1.Groups[0].ItemSettings.HotTrackStyle = ItemHotTrackStyle.HighlightEntireItem; this.ultraExplorerBar1.Groups[0].ItemSettings.Indent = 0; this.ultraExplorerBar1.Groups[0].ItemSettings.MaxLines = 3; this.ultraExplorerBar1.Groups[0].ItemSettings.SeparatorStyle = SeparatorStyle.Vertical; this.ultraExplorerBar1.Groups[0].ItemSettings.ShowToolTips = DefaultableBoolean.True; this.ultraExplorerBar1.Groups[0].ItemSettings.Style = ItemStyle.Button; this.ultraExplorerBar1.Groups[0].ItemSettings.UseDefaultImage = DefaultableBoolean.False; this.ultraExplorerBar1.Groups[0].ItemSettings.UseMnemonics = DefaultableBoolean.True; } }