c# 控件
控件
属性
Enabled true:可用,false:不可用
Visible true: 显示 false: 隐藏
UltraTextEditor
文本框控件
属性名 | 效果 | 例子 | 解释 |
---|---|---|---|
Name | 文本框名称 | textUsername | |
PasswordChar | 密码框效果 | * | 无论输入什么都显示* 也可以设置成其他 |
Multiline | 文本域 | True | 控件支持多行文本 |
Scrollbars | 滚动条 | Vertical |
// 赋值
textCode.Text = "teacher";
// 清除文本框内的内容
textCode.Clear();
// 修改背景色为红色
textCode.Appearance.BackColorDisabled = Color.Red;
// 修改字体色为黄色
textCode.Appearance.ForeColorDisabled = Color.Yellow;
UltraNumericEditor
数字框
UltraOptionSet
单选按钮控件
UltraOptioSet => Items => [{
CheckState:Checked,
DataValue(bool): True,
DisplayText: 是(中文名)
},
{
CheckState:Unchecked,
DataValue(bool): False,
DisplayText: 否(中文名)
}
]
// 选中
optionSetMaterialIsSteri.Value = true;
UltraComboEditor
下拉菜单控件
设置属性
DropDownStyle 设置位 DropDown 可实现模糊查询
属性名 | 效果 | 例子 | 解释 |
---|---|---|---|
Name | 下拉菜单名称 | cobprofession | |
DropDownStyle | 模糊查询 | DropDown |
var professionList = new List<ProfessionEnity>
{
new S