AuthenticDesktopControl.CommandsList

www.altova.com Imprimir este apartado Página anterior Subir un nivel Página siguiente

Inicio >  Referencia del programador > ActiveX Integration > Object Reference > AuthenticDesktopControl > Properties >

AuthenticDesktopControl.CommandsList

Property: CommandList as Commands (read-only)

 

Dispatch Id: 1004

 

Description:

This property returns a flat list of all commands defined available with AuthenticDesktopControl. To get commands organized according to their menu structure, use MainMenu. To get toolbar commands, use Toolbars.

 

 

public void GetAllAuthenticCommands()
{
  // Get all commands from the Authentic ActiveX control assigned to the current form
  AuthenticControlLib.XMLSpyCommands commands = this.axAuthenticDesktopControl1.CommandList;
  // Loop through all commands
  for (int i = 0; i < commands.Count; i++)
  {
    // Get each command by index and output it to the console
    AuthenticControlLib.XMLSpyCommand cmd = axAuthenticDesktopControl1.CommandList[i];
    Console.WriteLine("{0} {1} {2}", cmd.ID, cmd.Name, cmd.Label.Replace("&", ""));
  }
}

C# example


© 2019 Altova GmbH