C#控件系列--文本类控件
文本类控件主要包括Label、LinkLabel、Button、TextBox以及RichTextBox。
Label
功能
Label用来显示用户不能直接改变的文本信息。
属性
- Image--指定标签上显示的图像。
- Text--此属性是与文件相关联的文本。
- Name--标识对象的名称。
- AutoSize--如果此属性为true,则启用了根据字号自动调整大小。请注意,这只对文本不换行的标签控件有效。
- Enabled--是否启用该控件。
- Visible--可见还是隐藏。
方法
Contains--
CreateControl
Refresh
Select
Show
Hide
SetBounds
Update
时间: 2024-08-02 02:47:51