如何使用C#在运行时禁用自动换行
问题描述:
我正在使用打开文件对话框加载文本文件。
我想在加载文件时禁用自动换行选项,因为它会影响操作我将要做的。
如何使用C#
I am loading a text file using Open file dialog.
I want to disable the word wrap option when I am loading the file, because it affects the operation which I am about to do.
How to temporarily disable such word wrap features at run-time using C#
答
请看我对这个问题的评论。
你需要的是什么 http://msdn.microsoft.com/en-us/library/system.windows.forms.textboxbase.wordwrap.aspx [ ^ ] 。
该属性用于System.Windows.Forms.RichTextBox
或系统.Windows.Forms.TextBox
。
阅读标准的MSDN文档有什么问题?-SA
Please see my comment to the question.
What you need could be http://msdn.microsoft.com/en-us/library/system.windows.forms.textboxbase.wordwrap.aspx[^].
The property is used forSystem.Windows.Forms.RichTextBox
orSystem.Windows.Forms.TextBox
.
What's wrong with just reading standard MSDN documentation?—SA