publicenum MessageBoxImage { //消息框不包含符号。 None = 0, // 显示错误图标 Error = 16, // // 摘要: // The message box contains a symbol consisting of a white X in a circle with a // red background. Hand = 16, // // 摘要: // The message box contains a symbol consisting of white X in a circle with a red // background. Stop = 16, // // 摘要: // 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. Question = 32, // 问号 // // 摘要: // The message box contains a symbol consisting of an exclamation point in a triangle // with a yellow background. Exclamation = 48, // 感叹号 // // 摘要: // The message box contains a symbol consisting of an exclamation point in a triangle // with a yellow background. Warning = 48, // // 摘要: // The message box contains a symbol consisting of a lowercase letter i in a circle. Asterisk = 64, // 星号 // // 摘要: // The message box contains a symbol consisting of a lowercase letter i in a circle. Information = 64 }
例子:
1
var result4 = MessageBox.Show("您购买的图灵电子书仅供您个人使用,未经授权,不得以任何方式复制\r\n和传播本书内容。", title, MessageBoxButton.OK, MessageBoxImage.Question);