Assistant.DoAlert Método

Definición

Muestra una alerta y devuelve un entero que indica qué botón presionó el usuario.

public:
 int DoAlert(System::String ^ bstrAlertTitle, System::String ^ bstrAlertText, Microsoft::Office::Core::MsoAlertButtonType alb, Microsoft::Office::Core::MsoAlertIconType alc, Microsoft::Office::Core::MsoAlertDefaultType ald, Microsoft::Office::Core::MsoAlertCancelType alq, bool varfSysAlert);
public int DoAlert (string bstrAlertTitle, string bstrAlertText, Microsoft.Office.Core.MsoAlertButtonType alb, Microsoft.Office.Core.MsoAlertIconType alc, Microsoft.Office.Core.MsoAlertDefaultType ald, Microsoft.Office.Core.MsoAlertCancelType alq, bool varfSysAlert);
abstract member DoAlert : string * string * Microsoft.Office.Core.MsoAlertButtonType * Microsoft.Office.Core.MsoAlertIconType * Microsoft.Office.Core.MsoAlertDefaultType * Microsoft.Office.Core.MsoAlertCancelType * bool -> int
Public Function DoAlert (bstrAlertTitle As String, bstrAlertText As String, alb As MsoAlertButtonType, alc As MsoAlertIconType, ald As MsoAlertDefaultType, alq As MsoAlertCancelType, varfSysAlert As Boolean) As Integer

Parámetros

bstrAlertTitle
String

Establece el título de la alerta.

bstrAlertText
String

Establece el texto de la alerta.

alb
MsoAlertButtonType

Determina qué botones se muestran en la alerta.

alc
MsoAlertIconType

Determina el icono que se muestra en la alerta.

ald
MsoAlertDefaultType

Determina qué botón se establece como el botón predeterminado de la alerta. Si este argumento se establece en un valor mayor que el número de botones, se devuelve un error.

alq
MsoAlertCancelType

Establezca siempre esta opción en msoAlertCancelDefault. Cualquier otra configuración puede devolver un error.

varfSysAlert
Boolean

True si la alerta se muestra en un cuadro de mensaje o False si la alerta se muestra a través del Asistente de Office.

Devoluciones

Se aplica a