'宣言 Public Enum UltraExplorerBarStates Inherits System.Enum
public enum UltraExplorerBarStates : System.Enum
| メンバ | 解説 |
|---|---|
| ActivateableGroupOrItemExists | アクティブ化可能なグループまたは項目が存在しています。 |
| ActiveGroupExists | Active Groupが存在しています。 |
| ActiveGroupExpanded | Active Groupが展開されています。 |
| ActiveGroupInOverflowArea | ActiveGroupはNavigationOverflowButtonAreaにあります。 |
| ActiveGroupIsFirstActivateableOverflowGroup | Active GroupはNavigationOverflowButtonAreaにある最初のActivateableGroupです。 |
| ActiveGroupIsFirstGroup | 最初のGroupがActive Groupです。 |
| ActiveGroupIsLastActivateableGroup | ActiveGroupは最後のActivateableGroupです。 |
| ActiveGroupIsLastGroup | 最後のGroupがActive Groupです。 |
| ActiveGroupIsSelected | Active Groupが選択されています。 |
| ActiveGroupOrItemExists | Active GroupまたはItemが存在しています。 |
| ActiveGroupOrItemIsEditable | ユーザーインターフェイスを使用してActive GroupまたはItemを編集できます。 |
| ActiveGroupOrItemIsFirst | Active GroupまたはItemが最初です。 |
| ActiveGroupOrItemIsFirstCurrentlyVisibleGroupOrItem | 現在表示されている最初のGroupまたはItemがActive GroupまたはItemです。 |
| ActiveGroupOrItemIsLast | Active GroupまたはItemが最後です。 |
| ActiveGroupOrItemIsLastCurrentlyVisibleGroupOrItem | 現在表示されている最後のGroupまたはItemがActive GroupまたはItemです。 |
| ActiveItemExists | Active Itemが存在しています。 |
| ActiveItemIsFirstCurrentlyVisibleItemInGroup | Groupで現在表示されている最初のItemがActive Itemです。 |
| ActiveItemIsFirstItemInGroup | Groupの最初のItemがActive Itemです。 |
| ActiveItemIsInFirstGroup | Active Itemが最初のGroup内にあります。 |
| ActiveItemIsInLastGroup | Active Itemが最後のGroup内にあります。 |
| ActiveItemIsLastCurrentlyVisibleItemInGroup | Groupで現在表示されている最後のItemがActive Itemです。 |
| ActiveItemIsLastItemInGroup | Groupの最後のItemがActive Itemです。 |
| ActiveItemIsStateButton | 現在の ActiveItem のスタイルは 'StateButton' に解決されます。 |
| CanTabNextFromActiveGroupOrItem | アクティブなグループまたは項目から次にタブ移動できます。 |
| CanTabPreviousFromActiveGroupOrItem | アクティブなグループまたは項目から前にタブ移動できます。 |
| ExplorerBarMode | ExplorerBarモード |
| GroupFollowingActiveGroupExpanded | Active Groupの直後のGroupが展開されています。 |
| GroupFollowingActiveItemGroupExpanded | Active ItemのGroupの直後のGroupが展開されています。 |
| GroupPreceedingActiveGroupExpanded | Active Groupの直前のGroupが展開されています。 |
| GroupPreceedingActiveGroupSelected | Active Groupの直前のGroupが選択されています。 |
| GroupPreceedingActiveItemGroupExpanded | Active ItemのGroupの直前のGroupが展開されています。 |
| InEditMode | 編集モード |
| IsMultiColumn | Last Groupが選択されています。 |
| LastGroupIsSelected | Last Groupが選択されています。 |
| ListbarMode | Listbarモード |
| NavigationPaneFlyoutVisible | ナビゲーション ペイン フライアウトは現在開いています。 |
| OutlookNavigationPaneMode | OutlookNavigationPaneモード |
| QuickCustomizeButtonActive | NavigationOverflowButtonAreaのQuickCustomizeButtonがアクティブです。 |
| VisibleGroupExists | Visible Groupが存在しています。 |
| VisualStudio2005ToolboxMode | VisualStudio2005ToolboxMode |
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinExplorerBar Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button10.Click ' Add a key action mapping that will activate the first group in the control when the ' F3 key is pressed, but only when the control style is ExplorerBar and the control is ' not currently editing a Group or Item name. Dim myKeyActionMapping As UltraExplorerBarKeyActionMapping = _ New UltraExplorerBarKeyActionMapping(Keys.F3, _ UltraExplorerBarAction.ActivateFirstGroup, _ UltraExplorerBarStates.ActiveGroupIsFirstGroup Or UltraExplorerBarStates.InEditMode, _ UltraExplorerBarStates.ExplorerBarMode, _ 0, _ 0) Me.ultraExplorerBar1.KeyActionMappings.Add(myKeyActionMapping) ' Find the any keyaction mappings that invoke the ActivateLastGroup action and add disallowed ' and required states. Dim keyActionMapping As UltraExplorerBarKeyActionMapping For Each keyActionMapping In Me.ultraExplorerBar1.KeyActionMappings If (keyActionMapping.ActionCode = UltraExplorerBarAction.ActivateLastGroup) Then keyActionMapping.StateDisallowed = keyActionMapping.StateDisallowed Or UltraExplorerBarStates.ListbarMode keyActionMapping.StateRequired = keyActionMapping.StateRequired Or UltraExplorerBarStates.ActiveItemIsFirstItemInGroup End If Next End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button10_Click(object sender, System.EventArgs e) { // Add a key action mapping that will activate the first group in the control when the // F3 key is pressed, but only when the control style is ExplorerBar and the control is // not currently editing a Group or Item name. UltraExplorerBarKeyActionMapping myKeyActionMapping = new UltraExplorerBarKeyActionMapping(Keys.F3, UltraExplorerBarAction.ActivateFirstGroup, UltraExplorerBarStates.ActiveGroupIsFirstGroup | UltraExplorerBarStates.InEditMode, UltraExplorerBarStates.ExplorerBarMode, 0, 0); this.ultraExplorerBar1.KeyActionMappings.Add(myKeyActionMapping); // Find the any keyaction mappings that invoke the ActivateLastGroup action and add disallowed // and required states. foreach(UltraExplorerBarKeyActionMapping keyActionMapping in this.ultraExplorerBar1.KeyActionMappings) { if (keyActionMapping.ActionCode == UltraExplorerBarAction.ActivateLastGroup) { keyActionMapping.StateDisallowed |= UltraExplorerBarStates.ListbarMode; keyActionMapping.StateRequired |= UltraExplorerBarStates.ActiveItemIsFirstItemInGroup; } } }