TextBox C#中的最大字符? [英] Max Char in TextBox C#?

查看:15
本文介绍了TextBox C#中的最大字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道 C# 文本框多行可以容纳多少个字符?

Just wondering how many char can C# Textbox multiline hold?

推荐答案

看看MaxLength 属性 - 它存储控件可以占用的最大字符数;根据文档,它是可变的.不过,通常默认值足够大.(虽然我想既然你提出了这个问题,它可能不是!)

Look at the MaxLength property of the TextBox - it stores the maximum number of characters the control can take; as per the documentation, it is changeable. Usually the default is big enough, though. (Although I imagine that since you're asing the question, it may not be!)

从文档中,您可以看到 MaxLength 的最大值为 2147483646.当然,这受到目标机器内存的限制.

From the docs, you can see that the maximum value for MaxLength is 2147483646. This is, of course, limited by the memory of the target machine.

这篇关于TextBox C#中的最大字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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