Gets or sets the background color at the top of a button used when the button is selected.
public Color ButtonSelectedTop { get; set; }
Public Property ButtonSelectedTop As Color
This example describes how to use the 'Button
TXTextControl.ButtonBar buttonBar1 = new TXTextControl.ButtonBar();
buttonBar1.ButtonStyle = TXTextControl.ButtonStyle.ColorScheme;
buttonBar1.ButtonPositions = new TXTextControl.Button[] {
TXTextControl.Button.FontBoldButton,
TXTextControl.Button.FontNameComboBox };
buttonBar1.BorderStyle = TXTextControl.ButtonBarBorderStyle.ColorScheme;
TXTextControl.ButtonBar.Colors colors = new TXTextControl.ButtonBar.Colors();
colors.BackColor = System.Drawing.Color.White;
colors.ComboBoxBackColor = System.Drawing.Color.Azure;
colors.ForeColor = System.Drawing.Color.Black;
colors.ButtonBackColorBottom = System.Drawing.Color.Aquamarine;
colors.ButtonBackColorMiddle = System.Drawing.Color.Cyan;
colors.ButtonBackColorTop = System.Drawing.Color.DarkCyan;
colors.ButtonFrameColor = System.Drawing.Color.Red;
colors.ButtonHotTrackBottom = System.Drawing.Color.PowderBlue;
colors.ButtonHotTrackTop = System.Drawing.Color.PeachPuff;
colors.ButtonPressedBottom = System.Drawing.Color.Snow;
colors.ButtonPressedTop = System.Drawing.Color.SlateGray;
colors.ButtonSelectedBottom = System.Drawing.Color.WhiteSmoke;
colors.ButtonSelectedTop = System.Drawing.Color.Tomato; // In this line, the 'ButtonSelectedTop' property is set.
buttonBar1.DisplayColors = colors;
Dim buttonBar1 As TXTextControl.ButtonBar = New TXTextControl.ButtonBar()
buttonBar1.ButtonStyle = TXTextControl.ButtonStyle.ColorScheme
buttonBar1.ButtonPositions = New TXTextControl.Button() {TXTextControl.Button.FontBoldButton, TXTextControl.Button.FontNameComboBox}
buttonBar1.BorderStyle = TXTextControl.ButtonBarBorderStyle.ColorScheme
Dim colors As TXTextControl.ButtonBar.Colors = New TXTextControl.ButtonBar.Colors()
colors.BackColor = System.Drawing.Color.White
colors.ComboBoxBackColor = System.Drawing.Color.Azure
colors.ForeColor = System.Drawing.Color.Black
colors.ButtonBackColorBottom = System.Drawing.Color.Aquamarine
colors.ButtonBackColorMiddle = System.Drawing.Color.Cyan
colors.ButtonBackColorTop = System.Drawing.Color.DarkCyan
colors.ButtonFrameColor = System.Drawing.Color.Red
colors.ButtonHotTrackBottom = System.Drawing.Color.PowderBlue
colors.ButtonHotTrackTop = System.Drawing.Color.PeachPuff
colors.ButtonPressedBottom = System.Drawing.Color.Snow
colors.ButtonPressedTop = System.Drawing.Color.SlateGray
colors.ButtonSelectedBottom = System.Drawing.Color.WhiteSmoke
colors.ButtonSelectedTop = System.Drawing.Color.Tomato ' In this line, the 'ButtonSelectedTop' property is set.
buttonBar1.DisplayColors = colors