ToolButtonStyle ButtonStyle { get; set; }

robot_2Generated
code_blocksInput

Description

The ButtonStyle property of the Editor.ToolBar class specifies the visual style of the buttons within the toolbar. This property allows you to customize the appearance of the toolbar buttons to match the desired user interface design.

Usage

To use the ButtonStyle property, you need to have an instance of the Editor.ToolBar class. You can then set the ButtonStyle property to one of the predefined styles available in the Editor.ToolButtonStyle enumeration. This will change the appearance of all buttons within the toolbar.

Example

// Create a new toolbar instance
Editor.ToolBar myToolBar = new Editor.ToolBar();

// Set the button style to a predefined style
myToolBar.ButtonStyle = Editor.ToolButtonStyle.IconOnly;

// Add an option to the toolbar
myToolBar.AddOption("Save", "save_icon.png", () => {
    // Action to perform when the button is clicked
    SaveDocument();
});

// Set the toolbar title
myToolBar.Title = "Main Toolbar";

// Make the toolbar movable
myToolBar.Movable = true;