[]
Gets or sets a value representing the tools that are available in the designer's tool panel.
public ToolPanelButton ToolPanel { get; set; }
Type | Description |
---|---|
ToolPanelButton | A ToolPanelButton value that specifies the buttons displayed in the tool panel. The default is All, which displays all available tools. |
The tool panel provides quick access to various actions and settings within the designer. This property allows for customization of the tool panel by specifying which buttons should be available. For example, you can limit the tool panel to only show zoom controls or the grid toggle button, depending on the needs of your application.
Use the ToolPanelButton enumeration to configure the available tools. This can enhance the user interface by simplifying the tool panel based on the context of the task being performed.
// To hide specific items from the tool panel, use the ToolPanel property.
// The following code removes the zoom slider from the tool panel:
designer.ToolPanel = ToolPanelButton.All ^ ToolPanelButton.ZoomSlider;
// To remove multiple items, such as Dimension Lines, Grid Mode, Snap Grid, Snap Lines, and Mouse Mode, you can combine them like this:
designer.ToolPanel = ToolPanelButton.All ^ ToolPanelButton.DimensionLines ^ ToolPanelButton.GridMode;