一些 unicode 箭头在 C# 中看起来很奇怪
some unicode arrow look strange in C#
我正在使用 Visual Studio 2010 和 C#
btnAddAll.Text = "\u21C9";
btnRemoveAll.Text = "\u21C7";
默认字体:Microsoft Sans Serif
我的问题是关于第一个和最后一个按钮的外观以及如何解决这个问题。
这是我刚写的代码,效果很好,试试吧;
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;
这是它的样子:
我正在使用 Visual Studio 2010 和 C#
btnAddAll.Text = "\u21C9";
btnRemoveAll.Text = "\u21C7";
默认字体:Microsoft Sans Serif
我的问题是关于第一个和最后一个按钮的外观以及如何解决这个问题。
这是我刚写的代码,效果很好,试试吧;
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;
这是它的样子: