winform开发,我设置了选定某节点后整个子树的文本加粗体。加粗后文本宽度当然变宽了,于是就会有半个字显示不出来,不知道这是怎么回事?请教大伙。。 代码如下: #region "设置突出的节点"
private void DisplaySubTree(TreeNode thistd)
{
if (thistd!=null)
{
thistd.NodeFont = new Font("宋体", 9, FontStyle.Bold);
thistd.ForeColor = Color.DarkBlue;
DisplaySubTree(thistd.Parent);
}
}
#endregion
private void DisplaySubTree(TreeNode thistd)
{
if (thistd!=null)
{
thistd.NodeFont = new Font("宋体", 9, FontStyle.Bold);
thistd.ForeColor = Color.DarkBlue;
DisplaySubTree(thistd.Parent);
}
}
#endregion
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货