Partilhar via


RibbonToggleButton.IsChecked Property

Applies to v2.

Gets or sets a value indicating whether the button is checked (toggled) or not.

Namespace:  Microsoft.WebMatrix.Extensibility
Assembly:  Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)

Syntax

'Declaration
Public Property IsChecked As Nullable(Of Boolean)
    Get 
    Set
'Usage
Dim instance As RibbonToggleButton 
Dim value As Nullable(Of Boolean)

value = instance.IsChecked

instance.IsChecked = value
public Nullable<bool> IsChecked { get; set; }
public:
property Nullable<bool> IsChecked {
    Nullable<bool> get ();
    void set (Nullable<bool> value);
}
member IsChecked : Nullable<bool> with get, set
function get IsChecked () : Nullable<boolean>
function set IsChecked (value : Nullable<boolean>)

Property Value

Type: System.Nullable<Boolean>
true if the button is checked (toggled) or not; otherwise, false.

See Also

Reference

RibbonToggleButton Class

Microsoft.WebMatrix.Extensibility Namespace