相关疑难解决方法(0)

如何在多行TextBox中添加一行?

如何在 行中添加一行文字TextBox

例如伪代码;

textBox1.Clear();
textBox1.Lines.Add("1000+");
textBox1.Lines.Add("750-999");
textBox1.Lines.Add("400-749");
...snip...
textBox1.Lines.Add("40-59");
Run Code Online (Sandbox Code Playgroud)

要么

textBox1.Lines.Append("brown");
textBox1.Lines.Append("brwn");
textBox1.Lines.Append("brn");
textBox1.Lines.Append("brow");
textBox1.Lines.Append("br");
textBox1.Lines.Append("brw");
textBox1.Lines.Append("brwm");
textBox1.Lines.Append("bron");
textBox1.Lines.Append("bwn");
textBox1.Lines.Append("brnw");
textBox1.Lines.Append("bren");
textBox1.Lines.Append("broe");
textBox1.Lines.Append("bewn");
Run Code Online (Sandbox Code Playgroud)

TextBox.Lines实现的唯一方法(我可以看到)是:

  • 克隆
  • 复制到
  • 等于
  • 的GetType
  • GetHashCode的
  • 的GetEnumerator
  • 初始化
  • GetLowerBound
  • GetUpperBound
  • 对GetLength
  • GetLongLength
  • 的GetValue
  • 设定值
  • 的ToString

在此输入图像描述

c# textbox winforms

54
推荐指数
5
解决办法
25万
查看次数

标签 统计

c# ×1

textbox ×1

winforms ×1