haitao:
哦,是它!--使用串联运算符 (+) 使文本与 Text 属性串联 为什么不能换行呢?
[阅读: 825] 2005-03-11 00:47:39
使用串联运算符 (+) 使文本与 Text 属性串联 为什么不能换行呢?
.NET 框架类库
TextBoxBase.AppendText 方法 [C#]请参见
TextBoxBase 类 | TextBoxBase 成员 | System.Windows.Forms 命名空间 | Copy | Paste
要求
平台: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
语言
C#
C++
JScript
Visual Basic
全部显示
向文本框的当前文本追加文本。
[Visual Basic]
Public Sub AppendText( _
ByVal text As String _
)
[C#]
public void AppendText(
string text
);
[C++]
public: void AppendText(
String* text
);
[JScript]
public function AppendText(
text : String
);
参数
text
要向文本框的当前内容追加的文本。
备注
可以使用此方法向控件中的现有文本添加文本,而不使用串联运算符 (+) 使文本与 Text 属性串联。
要求
平台: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
请参见
TextBoxBase 类 | TextBoxBase 成员 | System.Windows.Forms 命名空间 | Copy | Paste
--------------------------------------------------------------------------------
将文档反馈发送给 Microsoft
© 2002 Microsoft Corporation。保留所有权利。