计算文本行 [英] count lines of text

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

问题描述

我需要将多行文本框限制为3行文本,如果少于

,则在离开时添加3行,添加空行持有者。我怎么能这样做?


谢谢,

保罗

I need to limit multiline textbox to 3 lines of text and if there are less
then 3 lines when leaving, add empty line holders. How can I do this??

Thanks,
paul

推荐答案

*保罗火星 < PA ****** @ netzero.com> scripsit:
* "Paul Mars" <pa******@netzero.com> scripsit:
我需要将多行文本框限制为3行文本,如果有更少的
然后离开3行,添加空行持有者。我怎么能这样做?
I need to limit multiline textbox to 3 lines of text and if there are less
then 3 lines when leaving, add empty line holders. How can I do this??




''TextBox1.Lines.Length''将返回行数。


-

Herfried K. Wagner [MVP]

< http://www.mvps.org/dotnet>



''TextBox1.Lines.Length'' will return the number of lines.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


谢谢,

Paul

" Herfried K. Wagner [MVP]" <喜*************** @ gmx.at>在消息中写道

news:eD ************** @ TK2MSFTNGP09.phx.gbl ...
Thanks,
Paul
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eD**************@TK2MSFTNGP09.phx.gbl...
*" Paul Mars" ; < PA ****** @ netzero.com> scripsit:
* "Paul Mars" <pa******@netzero.com> scripsit:
我需要将多行文本框限制为3行文本,如果有
少于3行,则在离开时添加空行持有者。我怎么能这样做?
I need to limit multiline textbox to 3 lines of text and if there are less then 3 lines when leaving, add empty line holders. How can I do this??



''TextBox1.Lines.Length''将返回行数。

-
Herfried K. Wagner [MVP]
< http://www.mvps.org/dotnet>



''TextBox1.Lines.Length'' will return the number of lines.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>



我应该限制什么事件3条线下??


再次感谢,

paul

Paul Mars < PA ****** @ netzero.com>在消息中写道

新闻:OI ************* @ TK2MSFTNGP11.phx.gbl ...
What event should I put limit to 3 lines under??

Thanks again,
paul
"Paul Mars" <pa******@netzero.com> wrote in message
news:OI*************@TK2MSFTNGP11.phx.gbl...
谢谢,
Paul
Herfried K. Wagner [MVP]" <喜*************** @ gmx.at>在消息中写道
新闻:eD ************** @ TK2MSFTNGP09.phx.gbl ...
Thanks,
Paul
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eD**************@TK2MSFTNGP09.phx.gbl...
*" Paul Mars" < PA ****** @ netzero.com> scripsit:
* "Paul Mars" <pa******@netzero.com> scripsit:
我需要将多行文本框限制为3行文本,如果离开时少于3行,则添加空行持有者。我怎么能这样做?
I need to limit multiline textbox to 3 lines of text and if there are less then 3 lines when leaving, add empty line holders. How can I do this??



''TextBox1.Lines.Length''将返回行数。

-
Herfried K. Wagner [MVP]
< http://www.mvps.org/dotnet>



''TextBox1.Lines.Length'' will return the number of lines.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>




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

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