Font boldFont = new Font(treeview.Font, FontStyle.Bold);
node.NodeFont = boldFont;
node.Text = node.Text; // 重点在此句,会将文字重新绘制一次,从而不全了没显示的文字
TreeView中加粗后,显示不全的终结解决方案
最新推荐文章于 2023-05-24 16:12:19 发布
Font boldFont = new Font(treeview.Font, FontStyle.Bold);
node.NodeFont = boldFont;
node.Text = node.Text; // 重点在此句,会将文字重新绘制一次,从而不全了没显示的文字