1、字体设置,比如宋体,9号大小,斜体
TreeNode rootNode1 = new TreeNode();
rootNode1.Text = "Locals";
treeView1.Nodes.Add(rootNode1);//添加根节点
TreeNode rootNodeSub1 = new TreeNode();
rootNodeSub1.Text = "<Right click to insert Local>";
rootNode1.Nodes.Add(rootNodeSub1);//添加子节点
rootNodeSub1.NodeFont = font;
字体设置.png
网友评论