ButtonStyle Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Gets or sets the painting style of the buttons.
Syntax
public ButtonStyle ButtonStyle { get; set; }Public Property ButtonStyle As ButtonStyleMembers
| Value | Description |
|---|---|
| ColorScheme | Paints the button bar's buttons with a light to dark variation in color. The colors depend on the color scheme currently set through the system or on the colors set with the DisplayColors property. |
| FlatButtons | Paints the button bar's buttons without visual effects. |
| ThreeDimensionalButtons | Paints the button bar's buttons with 3D effects. |
| XPButtons | Paints the button bar's buttons in Windows XP look. |
Examples
The following example uses ButtonBar.ButtonStyle to configure button style as part of the button bar workflow. The change is then applied to the active document or user interface.
buttonBar.ButtonStyle = ButtonStyle.ThreeDimensionalButtons;
buttonBar.Update();buttonBar.ButtonStyle = ButtonStyle.ThreeDimensionalButtons
buttonBar.Update()