RibbonToggleButton.IsChecked 屬性

適用於版本2

取得或設定表示是否核取 (切換) 按鈕的值。

命名空間:  Microsoft.WebMatrix.Extensibility
組件:  Microsoft.WebMatrix.Extensibility (在 Microsoft.WebMatrix.Extensibility.dll 中)

語法

'宣告
Public Property IsChecked As Nullable(Of Boolean)
    Get 
    Set
'用途
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>)

屬性值

型別:System.Nullable<Boolean>
如果已核取 (切換) 按鈕,則為 true,否則為 false。

請參閱

參考

RibbonToggleButton 類別

Microsoft.WebMatrix.Extensibility 命名空間