在一个TreeView的节点多行? [英] Multiple lines in a node of a treeview?

查看:143
本文介绍了在一个TreeView的节点多行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以在一个TreeView节点包含多行文本?是否有可能迫使它这样做,如果没有直接的方法是可能的(这很可能)?

Can a node in a treeview contain multiple lines of text? Is it possible to coerce it to do so if no direct way is possible (which seems likely)?

编程F#.NET 4.0中,的WinForms。

Programming in F#, .Net 4.0, winforms.

推荐答案

我从来没有需要有一个节点上的文字多行,但这里是另一个建议。

I have never needed to have text on multiple lines on a node, but here is another suggestion.

考虑使用CHAR固定数量(即100),然后将整段文字作为标题?

Consider using a fixed number of char (ie. 100) and then the whole text as a title?

因此​​,

-->
  |
   --> This is my very long..

然后将鼠标悬停在节点时

Then when hovering over the node

This is my very long text message.
That you can only see when hovering over the node. :)

这篇关于在一个TreeView的节点多行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆