Lenguaje

AlertDialog.Builder.SetNegativeButton Método

Definición

Sobrecargas

Nombre Description
SetNegativeButton(String, IDialogInterfaceOnClickListener)

Establezca un agente de escucha que se invocará cuando se presione el botón negativo del cuadro de diálogo.

SetNegativeButton(String, EventHandler<DialogClickEventArgs>)
SetNegativeButton(Int32, EventHandler<DialogClickEventArgs>)
SetNegativeButton(ICharSequence, EventHandler<DialogClickEventArgs>)
SetNegativeButton(ICharSequence, IDialogInterfaceOnClickListener)

Establezca un agente de escucha que se invocará cuando se presione el botón negativo del cuadro de diálogo.

SetNegativeButton(Int32, IDialogInterfaceOnClickListener)

Establezca un agente de escucha que se invocará cuando se presione el botón negativo del cuadro de diálogo.

SetNegativeButton(String, IDialogInterfaceOnClickListener)

Establezca un agente de escucha que se invocará cuando se presione el botón negativo del cuadro de diálogo.

public Android.App.AlertDialog.Builder SetNegativeButton(string text, Android.Content.IDialogInterfaceOnClickListener listener);
member this.SetNegativeButton : string * Android.Content.IDialogInterfaceOnClickListener -> Android.App.AlertDialog.Builder

Parámetros

text
String

CharSequence: texto que se va a mostrar en el botón negativo

listener
IDialogInterfaceOnClickListener

DialogInterface.OnClickListener: DialogInterface.OnClickListener que se va a usar.

Devoluciones

Este objeto Builder permite encadenar llamadas para establecer métodos

Comentarios

Establezca un agente de escucha que se invocará cuando se presione el botón negativo del cuadro de diálogo.

Referencia de Android para android.app.AlertDialog.Builder.setNegativeButton.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a

SetNegativeButton(String, EventHandler<DialogClickEventArgs>)

public Android.App.AlertDialog.Builder? SetNegativeButton(string text, EventHandler<Android.Content.DialogClickEventArgs> handler);
member this.SetNegativeButton : string * EventHandler<Android.Content.DialogClickEventArgs> -> Android.App.AlertDialog.Builder

Parámetros

text
String

Devoluciones

Comentarios

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a

SetNegativeButton(Int32, EventHandler<DialogClickEventArgs>)

public Android.App.AlertDialog.Builder? SetNegativeButton(int textId, EventHandler<Android.Content.DialogClickEventArgs> handler);
member this.SetNegativeButton : int * EventHandler<Android.Content.DialogClickEventArgs> -> Android.App.AlertDialog.Builder

Parámetros

textId
Int32

Devoluciones

Comentarios

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a

SetNegativeButton(ICharSequence, EventHandler<DialogClickEventArgs>)

public Android.App.AlertDialog.Builder? SetNegativeButton(Java.Lang.ICharSequence text, EventHandler<Android.Content.DialogClickEventArgs> handler);
member this.SetNegativeButton : Java.Lang.ICharSequence * EventHandler<Android.Content.DialogClickEventArgs> -> Android.App.AlertDialog.Builder

Parámetros

Devoluciones

Comentarios

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a

SetNegativeButton(ICharSequence, IDialogInterfaceOnClickListener)

Establezca un agente de escucha que se invocará cuando se presione el botón negativo del cuadro de diálogo.

[Android.Runtime.Register("setNegativeButton", "(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;", "GetSetNegativeButton_Ljava_lang_CharSequence_Landroid_content_DialogInterface_OnClickListener_Handler")]
public virtual Android.App.AlertDialog.Builder SetNegativeButton(Java.Lang.ICharSequence text, Android.Content.IDialogInterfaceOnClickListener listener);
[<Android.Runtime.Register("setNegativeButton", "(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;", "GetSetNegativeButton_Ljava_lang_CharSequence_Landroid_content_DialogInterface_OnClickListener_Handler")>]
abstract member SetNegativeButton : Java.Lang.ICharSequence * Android.Content.IDialogInterfaceOnClickListener -> Android.App.AlertDialog.Builder
override this.SetNegativeButton : Java.Lang.ICharSequence * Android.Content.IDialogInterfaceOnClickListener -> Android.App.AlertDialog.Builder

Parámetros

text
ICharSequence

CharSequence: texto que se va a mostrar en el botón negativo

listener
IDialogInterfaceOnClickListener

DialogInterface.OnClickListener: DialogInterface.OnClickListener que se va a usar.

Devoluciones

Este objeto Builder permite encadenar llamadas para establecer métodos

Atributos

Comentarios

Establezca un agente de escucha que se invocará cuando se presione el botón negativo del cuadro de diálogo.

Referencia de Android para android.app.AlertDialog.Builder.setNegativeButton.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a

SetNegativeButton(Int32, IDialogInterfaceOnClickListener)

Establezca un agente de escucha que se invocará cuando se presione el botón negativo del cuadro de diálogo.

[Android.Runtime.Register("setNegativeButton", "(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;", "GetSetNegativeButton_ILandroid_content_DialogInterface_OnClickListener_Handler")]
public virtual Android.App.AlertDialog.Builder SetNegativeButton(int textId, Android.Content.IDialogInterfaceOnClickListener listener);
[<Android.Runtime.Register("setNegativeButton", "(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;", "GetSetNegativeButton_ILandroid_content_DialogInterface_OnClickListener_Handler")>]
abstract member SetNegativeButton : int * Android.Content.IDialogInterfaceOnClickListener -> Android.App.AlertDialog.Builder
override this.SetNegativeButton : int * Android.Content.IDialogInterfaceOnClickListener -> Android.App.AlertDialog.Builder

Parámetros

textId
Int32

int: identificador de recurso del texto que se va a mostrar en el botón negativo

listener
IDialogInterfaceOnClickListener

DialogInterface.OnClickListener: DialogInterface.OnClickListener que se va a usar.

Devoluciones

Este objeto Builder permite encadenar llamadas para establecer métodos

Atributos

Comentarios

Establezca un agente de escucha que se invocará cuando se presione el botón negativo del cuadro de diálogo.

Referencia de Android para android.app.AlertDialog.Builder.setNegativeButton.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a