AlertDialog.GetButton(Int32) メソッド

定義

ダイアログで使用されるボタンのいずれかを取得します。

[Android.Runtime.Register("getButton", "(I)Landroid/widget/Button;", "GetGetButton_IHandler")]
public virtual Android.Widget.Button? GetButton(int whichButton);
[<Android.Runtime.Register("getButton", "(I)Landroid/widget/Button;", "GetGetButton_IHandler")>]
abstract member GetButton : int -> Android.Widget.Button
override this.GetButton : int -> Android.Widget.Button

パラメーター

whichButton
Int32

返されるボタンの識別子。 たとえば、これは DialogInterface#BUTTON_POSITIVEできます。

返品

ダイアログのボタン。ボタンが存在しない場合は null。

属性

注釈

ダイアログで使用されるボタンのいずれかを取得します。 指定したボタンが存在しない場合、またはダイアログがまだ完全に作成されていない場合 (たとえば、 #show() または #create()を使用して) null を返します。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象