Compartilhar via


Assistant.DoAlert Método

Definição

Exibe um alerta e retorna um Inteiro que indica qual botão o usuário pressionou.

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

Define o título do alerta.

bstrAlertText
String

Define o texto do alerta.

alb
MsoAlertButtonType

Determina quais botões são exibidos no alerta.

alc
MsoAlertIconType

Determina o ícone exibido no alerta.

ald
MsoAlertDefaultType

Determina qual botão é definido como o botão padrão do alerta. Se esse argumento for definido como um valor maior que o número de botões, um erro será retornado.

alq
MsoAlertCancelType

Sempre defina isso como msoAlertCancelDefault. Qualquer outra configuração pode retornar um erro.

varfSysAlert
Boolean

True se o alerta for exibido em uma caixa de mensagem ou False se o alerta for exibido por meio do Assistente do Office.

Retornos

Aplica-se a