ToolBar ToolBar { get; set; }

robot_2Generated
code_blocksInput

Description

The ToolBar property of the Editor.SoundPlayer class provides access to the toolbar associated with the sound player widget. This toolbar can be used to add, remove, or modify controls that are relevant to the sound player's functionality within the editor environment.

Usage

To access the ToolBar property, you need to have an instance of the SoundPlayer class. Once you have the instance, you can use the ToolBar property to interact with the toolbar. This can include adding buttons, sliders, or other UI elements that control sound playback or settings.

Example

// Create an instance of the SoundPlayer
Editor.SoundPlayer soundPlayer = new Editor.SoundPlayer();

// Access the ToolBar property
Editor.ToolBar toolBar = soundPlayer.ToolBar;

// Example: Add a button to the toolbar
Editor.Button playButton = new Editor.Button("Play");
toolBar.Add(playButton);

// Example: Add a slider to control volume
Editor.Slider volumeSlider = new Editor.Slider();
toolBar.Add(volumeSlider);