MessageBoxImage 枚举

定义

指定消息框所显示的图标。Specifies the icon that is displayed by a message box.

public enum class MessageBoxImage
public enum MessageBoxImage
type MessageBoxImage = 
Public Enum MessageBoxImage
继承
MessageBoxImage

字段

Asterisk 64

消息框包含一个符号,该符号在圆圈中包含小写字母 i。The message box contains a symbol consisting of a lowercase letter i in a circle.

Error 16

消息框包含一个符号,该符号包含一个红色背景圆圈,圆圈中为白色 X 符号。The message box contains a symbol consisting of white X in a circle with a red background.

Exclamation 48

消息框包含一个符号,该符号包含一个黄色背景三角形,三角形中为感叹号。The message box contains a symbol consisting of an exclamation point in a triangle with a yellow background.

Hand 16

消息框包含一个符号,该符号包含一个红色背景圆圈,圆圈中为白色 X 符号。The message box contains a symbol consisting of a white X in a circle with a red background.

Information 64

消息框包含一个符号,该符号在圆圈中包含小写字母 i。The message box contains a symbol consisting of a lowercase letter i in a circle.

None 0

消息框未包含符号。The message box contains no symbols.

Question 32

消息框包含一个符号,该符号包含一个圆圈,圆圈中为问号。The message box contains a symbol consisting of a question mark in a circle. 不再建议使用问号消息图标,因为这种图标无法清楚地表示特定类型的消息,并且作为问题的消息表述可应用于任何消息类型。The question mark message icon is no longer recommended because it does not clearly represent a specific type of message and because the phrasing of a message as a question could apply to any message type. 此外,用户可能会将问号符号与帮助信息符合混淆。In addition, users can confuse the question mark symbol with a help information symbol. 因此,请不要在消息框中使用问号符号。Therefore, do not use this question mark symbol in your message boxes. 系统继续支持它包含的内容,只为满足反向兼容性。The system continues to support its inclusion only for backward compatibility.

Stop 16

消息框包含一个符号,该符号包含一个红色背景圆圈,圆圈中为白色 X 符号。The message box contains a symbol consisting of white X in a circle with a red background.

Warning 48

消息框包含一个符号,该符号包含一个黄色背景三角形,三角形中为感叹号。The message box contains a symbol consisting of an exclamation point in a triangle with a yellow background.

注解

下表显示了不同的消息框图标。The following table shows the different message box icons.

图标Icon nameName
红色圆圈中的白色 XWhite X in red circle 交接Hand
蓝色圆圈中的空心问号White question mark in blue circle 问题Question
黄色三角形中的黑色感叹号Black exclamation point in yellow triangle 标记Exclamation
蓝圆圈中的白色小写 iWhite lowercase i in blue circle 红星Asterisk
红色圆圈中的白色 XWhite X in red circle 停止Stop
红色圆圈中的白色 XWhite X in red circle 错误Error
黄色三角形中的黑色感叹号Black exclamation point in yellow triangle 警告Warning
蓝圆圈中的白色小写 iWhite lowercase i in blue circle 信息Information

有关使用MessageBox时演示多个选项的示例, 请参阅MessageBox 示例For a sample that demonstrates several options when using the MessageBox, see MessageBox Sample.

适用于

另请参阅