RemoteViews.SetCompoundButtonChecked(Int32, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
等同於呼叫 android.widget.CompoundButton#setChecked(boolean)。
[Android.Runtime.Register("setCompoundButtonChecked", "(IZ)V", "GetSetCompoundButtonChecked_IZHandler", ApiSince=31)]
public virtual void SetCompoundButtonChecked(int viewId, bool checked);
[<Android.Runtime.Register("setCompoundButtonChecked", "(IZ)V", "GetSetCompoundButtonChecked_IZHandler", ApiSince=31)>]
abstract member SetCompoundButtonChecked : int * bool -> unit
override this.SetCompoundButtonChecked : int * bool -> unit
參數
- viewId
- Int32
要設定屬性的視圖的 ID。
- checked
- Boolean
true是檢查按鈕,false是取消勾選。
- 屬性
備註
Java 文件 android.widget.RemoteViews.setCompoundButtonChecked(int, boolean)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。