Is it possible to configure vertical scrolling in ICSharpCode.TextEditor such that by default no vertical scrollbar is visible. And that only when someone types a lot of lines (beyond current height of this control) that a vertical scrollbar appears automatically. If yes, how?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
Its easy to add the function yourself:
1) Goto the namespace
ICSharpCode.TextEditor
and open theTextAreaControl
class. The file location is: C:...\ICSharpCode.TextEditor\Project\Src\Gui\TextAreaControl.cs2) Add a method to set the visibility of the Horizontal or Vertical scrollbar:
3) In the project with the TextEditor, this is how you call the
ShowScrollBars()
method:This code does the trick to show the vertical scrollbar based on the number of text lines:
In the TextAreaControl:
ps I'm using this Code Project ICSharpCode-TextEditor project.