ManagementUIColorTable.CommandBarButtonPressed Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, gets the color of a command bar button in the pressed state.
public:
abstract property System::Drawing::Color CommandBarButtonPressed { System::Drawing::Color get(); };
public abstract System.Drawing.Color CommandBarButtonPressed { get; }
member this.CommandBarButtonPressed : System.Drawing.Color
Public MustOverride ReadOnly Property CommandBarButtonPressed As Color
Property Value
A Color object that indicates the color of a command bar button in the pressed state.
Examples
The following example demonstrates the CommandBarButtonPressed property. This code example is part of a larger example provided for the ManagementUIColorTable class.
ListViewItem item02 = new ListViewItem();
item02.Text = "CommandBarButtonPressed";
item02.SubItems.Add(uiService.Colors.CommandBarButtonPressed.ToString());
item02.BackColor = uiService.Colors.CommandBarButtonPressed;
ListView.Items.Add(item02);
Remarks
This property enables you to determine the color of a button on the command bar when the user clicks it.