Version

ButtonStyle Property (WebHtmlEditor)

Gets a ButtonStyle object representing the style that will be applied to all classes derived from BaseToolbarButton on the toolbar.
Syntax
'Declaration
 
Public ReadOnly Property ButtonStyle As ButtonStyle
public ButtonStyle ButtonStyle {get;}

Property Value

A ButtonStyle object representing the styles of all buttons.
Remarks

Use this object to globally apply styles to all buttons at once. For example, setting ButtonStyle.BackColor to Color.Red will cause all of the buttons to have a red background.

If WebHtmlEditor.ButtonMode is ButtonMode.Image (the default), the WebHtmlEditor.ButtonStyle property can be used to apply visual "mouse effects" to buttons. For example, setting ButtonStyle.MouseOverBackColor to Color.Blue will cause all of the buttons to turn blue when the mouse is placed over them.

If you want one (or many) buttons to have a different style than the rest, you can set the style properties on the button level instead of using this global style mechanism.

For default values of this property, see the WebHtmlEditor constructor topic.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also