Version

PerformAction Method

Simulates user interaction with the control.
Syntax
'Declaration
 
Public Overridable Function PerformAction( _
   ByVal actionCode As UltraExplorerBarAction _
) As Boolean
public virtual bool PerformAction( 
   UltraExplorerBarAction actionCode
)

Parameters

actionCode
Enumeration indicating the action to take.

Return Value

A boolean indicating if the action was performed.
Remarks

Invoke this method to simulate an action the user can perform.

Many actions are only appropriate in certain situations; if an action is inappropriate, it will not be performed. For example, an attempt to edit the ActiveGroup when there is no Active Group will fail..

You can use the CurrentState property to determine the state of the control when the action is about to be performed.

Example
The following code shows how to use the control's PerformAction method to force the control to perform one of its built in actions.

Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar


	Private Sub Button23_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button23.Click

		' Using the built-in actions of the ExplorerBar control, activate the first group in the
		' control and then click it.
		Me.ultraExplorerBar1.PerformAction(UltraExplorerBarAction.ActivateFirstGroup)
		Me.ultraExplorerBar1.PerformAction(UltraExplorerBarAction.ClickActiveGroup)

	End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinExplorerBar;


		private void button23_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.PerformAction(UltraExplorerBarAction.ActivateFirstGroup);
			this.ultraExplorerBar1.PerformAction(UltraExplorerBarAction.ClickActiveGroup);
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also