开发者

Can I add space between nodes in Forms.TreeView?

I want my System.Windows.Forms.TreeView to have spaces between all root nodes.

For example, if they look like this:

A
  B
  C
D
  E
F
  G
  H

I want them spaced apart like this:

A
  B
  C


D
  E


F
  G开发者_Go百科
  H

Thanks!


You can use the ItemHeight property which sets the height, in pixels, of each tree node in the tree view. But it just sets the spaces for every TreeNode, you cannot give different heights for different TreeNode. There is no easy way to give different ItemHeights for TreeNodes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜