我正在使用带有C#的Visual Studio 2010
btnAddAll.Text = "\u21C9";
btnRemoveAll.Text = "\u21C7";
字体是默认值:Microsoft Sans Serif
我的问题是关于第一个和最后一个按钮的外观以及如何解决这个问题。
答案 0 :(得分:1)
这是我刚刚编写的代码,它运行正常,试一试;
button1.Text = "\u21C7";
button1.Font = new Font("Microsoft Sans Serif", button1.Height / 2);
button1.TextAlign = ContentAlignment.TopCenter;
button2.Text = "\u2192";
button2.Font = new Font("Microsoft Sans Serif", button1.Height / 2);
button2.TextAlign = ContentAlignment.TopCenter;
button3.Text = "\u2190";
button3.Font = new Font("Microsoft Sans Serif", button1.Height / 2);
button3.TextAlign = ContentAlignment.TopCenter;
button4.Text = "\u21C9";
button4.Font = new Font("Microsoft Sans Serif", button1.Height / 2);
button4.TextAlign = ContentAlignment.TopCenter;
这就是它的样子: