Share via


RibbonToggleButton.Checked Property (2007 System)

Gets or sets a value that indicates whether the toggle button is pressed or not pressed.

Namespace:  Microsoft.Office.Tools.Ribbon
Assembly:  Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)

Syntax

'Declaration
Public Property Checked As Boolean
'Usage
Dim instance As RibbonToggleButton 
Dim value As Boolean 

value = instance.Checked

instance.Checked = value
public bool Checked { get; set; }
public:
property bool Checked {
    bool get ();
    void set (bool value);
}
public function get Checked () : boolean 
public function set Checked (value : boolean)

Property Value

Type: System.Boolean
true if the toggle button is pressed; otherwise, false. The default is false.

Remarks

The Checked property can be changed at run time.

.NET Framework Security

See Also

Reference

RibbonToggleButton Class

RibbonToggleButton Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview