'宣言 Public Overridable Function PerformKeyAction( _ ByVal actionCode As UltraExplorerBarAction, _ ByVal shift As Boolean, _ ByVal control As Boolean _ ) As Boolean
public virtual bool PerformKeyAction( UltraExplorerBarAction actionCode, bool shift, bool control )
このメソッドは、ユーザーが実行できるアクションをシミュレートするために使用します。
CurrentState プロパティを使用して、アクションが実行されようとしているときにコントロールの状態を決定します。
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinExplorerBar Private Sub Button90_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button90.Click ' Using the built-in actions of the ExplorerBar control, activate the first group in the ' control and then click it. Me.ultraExplorerBar1.PerformKeyAction(UltraExplorerBarAction.ActivateFirstGroup, False, False) Me.ultraExplorerBar1.PerformKeyAction(UltraExplorerBarAction.ClickActiveGroup, False, False) End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button92_Click(object sender, System.EventArgs e) { // Using the built-in actions of the ExplorerBar control, activate the first group in the // control and then click it. this.ultraExplorerBar1.PerformKeyAction(UltraExplorerBarAction.ActivateFirstGroup, false, false); this.ultraExplorerBar1.PerformKeyAction(UltraExplorerBarAction.ClickActiveGroup, false, false); }