| Visual Basic (Declaration) | |
|---|---|
Public Enum ToolDisplayStyle Inherits Enum | |
| C# | |
|---|---|
public enum ToolDisplayStyle : Enum | |
| Member | Description |
|---|---|
| Default | The tool is displayed in a default style based on the resolution hierarchy. |
| DefaultForToolType | The tool is displayed based on the default for the tools type and its location. |
| TextOnlyAlways | The tool is always displayed as text only. |
| TextOnlyInMenus | The Tool is displayed as a graphic when located on a Toolbar, and displayed as text when located on a Menu. |
| ImageAndText | The tool is displayed using its assigned image and text. This setting is ignored when the item is on a top-level menu. |
| ImageOnlyOnToolbars | The Tool is displayed as a graphic when located on a Toolbar, and displayed as image and text when located on a Menu. |
Note: This enumeration does not affect tools that are placed on a RibbonGroup. The contents of a tool on a ribbon group are based upon the InstanceProps.PreferredSizeOnRibbon and InstanceProps.MinimumSizeOnRibbon.
The following code creates 2 toolbars and a button tool. It adds an instance of the button tool to each toolbar. It then sets some shared properties on the tool which will affect both tool instances, and then sets some instance properties which just affects one of the instances.
| Visual Basic | Copy Code |
|---|---|
Imports System.Diagnostics | |
| C# | Copy Code |
|---|---|
using System.Diagnostics; | |
