RichTextbox MaxLength 太小 [英] RichTextbox MaxLength too small

查看:78
本文介绍了RichTextbox MaxLength 太小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在 RichTextBox 中打开一个大约 4MB 的文本文件,但文本的结尾被修剪"了.

I need to open a text file with ~4MB in a RichTextBox, but the end of the text was "trimmed".

如何覆盖 RichTextBox.MaxLength Int32 限制?

How do I override a RichTextBox.MaxLength Int32 limit?

推荐答案

我不确定 RichTextBox 可以处理多少文本,但我相信 MaxLength 仅适用于用户输入的文本.如果直接设置 .Text ,它应该能够超过 MaxLength,除非 MaxLength 已经达到最大值.

I'm not sure how much text RichTextBox can handle, but I believe MaxLength only applies to text the user enters. If you set .Text directly it should be able to go past MaxLength, unless MaxLength is already at the maximum.

这篇关于RichTextbox MaxLength 太小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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