版权声明:我不生产代码,我只是代码的搬运工。 https://blog.csdn.net/qq_43307934/article/details/84664630
- ‘\n’是换行;
- “ ”是填充的空格;
- aaaa是程序中定义的 int 数据,也可以是其它类型的数据;
- 注意各自的符号。最后一项可以不要,
MessageBox.Show("数据导入完成"
+ '\n'
+ " "
+ aaaa,
"这里设置标题",
MessageBoxButton.OK,
MessageBoxImage.Information,
MessageBoxResult.OK);
效果: