如何使用C#在运行时禁用自动换行 [英] How to disable word wrap at run-time using C#
本文介绍了如何使用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 [< a href =http://msdn.microsoft.com/en-us/library/system.windows.forms.textboxbase.wordwrap.aspxtarget =_ blanktitle =New Window> ^ ] 。
该属性用于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
这篇关于如何使用C#在运行时禁用自动换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文