Bunifu Framework "Text Box" 缺少 SelectAll 函数?
Bunifu Framework "Text Box" SelectAll function missing?
点击Bunifu Framework TextBox 后如何调用"SelectAll()"函数?因为我想 select TextBox 中的所有文本。请帮忙
这是一个快速修复
//replace (Bunifu.Framework.UI.BunifuMaterialTextbox) with your specified type of textbox
private void SelectAll(Bunifu.Framework.UI.BunifuMaterialTextbox metroTextbox)
{
foreach (var ctl in metroTextbox.Controls)
{
if (ctl.GetType() == typeof(TextBox))
{
var txt = (TextBox)ctl;
txt.SelectAll();
}
}
}
点击Bunifu Framework TextBox 后如何调用"SelectAll()"函数?因为我想 select TextBox 中的所有文本。请帮忙
这是一个快速修复
//replace (Bunifu.Framework.UI.BunifuMaterialTextbox) with your specified type of textbox
private void SelectAll(Bunifu.Framework.UI.BunifuMaterialTextbox metroTextbox)
{
foreach (var ctl in metroTextbox.Controls)
{
if (ctl.GetType() == typeof(TextBox))
{
var txt = (TextBox)ctl;
txt.SelectAll();
}
}
}