ICreate.Controls.Bars Send comments on this topic.
Checked Property
See Also 
ICreate.Controls.Bars Namespace > ButtonBarButton Class : Checked Property






Gets or sets if the ButtonBarButton is checked.

Syntax

Visual Basic (Declaration) 
Public Property Checked As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ButtonBarButton
Dim value As Boolean
 
instance.Checked = value
 
value = instance.Checked
C# 
public bool Checked {get; set;}
Delphi 
public read-write property Checked: Boolean; 
JScript 
public function get,set Checked : boolean
Managed Extensions for C++ 
public: __property bool get_Checked();
public: __property void set_Checked( 
   bool value
);
C++/CLI 
public:
property bool Checked {
   bool get();
   void set (bool value);
}

Return Value

A System.Boolean value, this property specifies if the ButtonBarButton is checked or not. If true then the ButtonBarButton is checked; otherwise false and the ButtonBarButton is not checked. The default value for Checked is false.

Remarks

When a ButtonBarButton is checked it is drawn depressed, the background colour is CheckedBackColor, and the Text colour CheckedForColor. If the CheckOnClick is true then the Checked property is automatically toggled when the ButtonBarButton is clicked. If CheckGroupIdentifier is specified, then the ButtonBarButton belongs to the specified check group and only one button in the check group may be checked at any time.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also