Description
The AddSeparator
method is a member of the Editor.ToolBar
class. It is used to add a visual separator to the toolbar, which can help organize and group toolbar items for better user interface clarity. This method returns an Editor.Option
object, which represents the separator added to the toolbar.
Usage
To use the AddSeparator
method, you need to have an instance of the Editor.ToolBar
class. Call the method on this instance to add a separator to the toolbar. This can be particularly useful when you want to visually distinguish between different groups of toolbar options.
Example
// Create a new toolbar instance
Editor.ToolBar myToolBar = new Editor.ToolBar();
// Add a separator to the toolbar
Editor.Option separator = myToolBar.AddSeparator();
// Optionally, you can use the returned Editor.Option object for further customization or reference