单击Bunifu框架文本框,然后如何调用" selectall(("函数?因为我想在文本框中选择所有文本。请帮助
这是一个快速修复
//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();
}
}
}