如何在TreeView中显示水平滚动条
问题描述:
树视图中有默认的水平滚动条,但只有当节点文本的大小大于论坛上的树视图宽度时,滚动条才会变为可见。但我想总是显示滚动条甚至节点文本的大小更小。
那么我怎样才能在c#winform中做到这一点?
There is default Horizontal scrollbar in treeview but that scrollbar become visible only when the size of node text is larger then treeview width on forum.but i want to always show that scrollbar even size of node text is smaller.
So how i can do this in c# winform?
答
你不能。请参阅:此处 [ ^ ]。
MSDN明确指出:获取或设置一个值,指示树视图控件是否在需要时显示滚动条 。
Nope you can't. See: here[^].
MSDN states clearly: Gets or sets a value indicating whether the tree view control displays scroll bars when they are needed.