Altova StyleVision 2024 Enterprise Edition

Eigenschaft: CommandList als Commands (schreibgeschützt)

 

Dispatch Id: 1004

 

Beschreibung:

Diese Eigenschaft gibt eine flache Liste aller Befehle zurück, die mit StyleVisionControl verfügbar sind. Um Befehle, geordnet nach Menüstruktur, abzurufen, verwenden Sie MainMenu. Um Symbolleistenbefehle abzurufen, verwenden Sie Toolbars.

 

 

 

public void GetAllStyleVisionCommands()
{
  // Get all commands from the StyleVision ActiveX control assigned to the current form
  StyleVisionControlLib.StyleVisionCommands commands = this.axStyleVisionControl1.CommandList;
  // Iterate through all commands
  for (int i = 0; i < commands.Count; i++)
  {
    // Get each command by index and output it to the console
    StyleVisionControlLib.StyleVisionCommand cmd = axStyleVisionControl1.CommandList[i];
    Console.WriteLine("{0} {1} {2}", cmd.ID, cmd.Name, cmd.Label.Replace("&", ""));
  }
}

C#-Beispiel

 

© 2017-2023 Altova GmbH