Altova Authentic 2027 Desktop

Eigenschaft: CommandList als Commands (schreibgeschützt)

 

Dispatch Id: 1004

 

Beschreibung:

Diese Eigenschaft gibt eine flache Liste aller Befehle zurück, die mit AuthenticDesktopControl verfügbar sind. Um Befehle, geordnet nach Menüstruktur, abzurufen, verwenden Sie MainMenu. Um Symbolleistenbefehle abzurufen, verwenden Sie 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#-Beispiel

 

© 2020-2026 Altova GmbH