箭头字符不显示 [英] Arrow Characters not displaying
本文介绍了箭头字符不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我目前在使箭头字符显示在列表视图子项中遇到一些困难.我正在使用的代码如下:
Hi all,
i am currently experiencing some difficulties in getting arrow characters to display in a list view sub item. The code i am using is below:
lis = new ListViewItem(1.ToString());//(i + 1).ToString());
if (targets[i].ApproachDirection.ToString().Equals("Forward"))
{
// up
lis.SubItems.Add("↑");
}
else
{
// down = ''↓'';
lis.SubItems.Add("↓");
}
看起来不错,但在窗体中显示时会显示不受支持的char矩形.
有谁知道该如何解决?
谢谢George
This looks fine but displays an unsupported char rectangle when displayed in the form.
Does anyone know how this can be resolved?
Thanks George
推荐答案
我刚刚尝试过-在表单中添加了列表视图,将视图"设置为列表",并添加了以下代码:
I just tried it - added a listview to a form, set the "View" to "List", and added this code:
listView1.Items.Add("↑");
listView1.Items.Add("U");
listView1.Items.Add("↓");
listView1.Items.Add("D");
有效:您在做什么
这些讨论应该对您有所帮助:
类似的讨论1 [类似想法不同的情况 [
These discussion should help you out:
Similar discussion 1[^]
Similar idea different scenario[^]
I guess, it''s the font settings that make it look like a box. Trying setting the font via CSS to a valid family that shows an arrow.
他们会的.您只需要适当的字体.您可以使用Windows安装随附的标准应用程序检查哪些字体支持哪些字体:字符映射.
确保使用正确的Unicode字符;它们是x2190到x21EA,在箭头"范围内.
—SA
They will. You just need appropriate font. You can examine which font support what using standard application which comes with Windows installation: Character Map.
Make sure you use right Unicode characters; they are x2190 to x21EA, in the range called "Arrows".
—SA
这篇关于箭头字符不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文