* UICombobox:增加FindString方法

This commit is contained in:
Sunny 2021-08-05 13:18:15 +08:00
parent dc91d5f879
commit b0a7f4d51b
7 changed files with 20 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -49,6 +49,16 @@ namespace Sunny.UI
fullControlSelect = true;
}
public int FindString(string s)
{
return ListBox.FindString(s);
}
public int FindStringExact(string s)
{
return ListBox.FindStringExact(s);
}
private void ListBox_ItemsRemove(object sender, EventArgs e)
{
if (ListBox.Count == 0)

View File

@ -104,6 +104,16 @@ namespace Sunny.UI
ItemsClear?.Invoke(this, e);
}
public int FindString(string s)
{
return listbox.FindString(s);
}
public int FindStringExact(string s)
{
return listbox.FindStringExact(s);
}
[Browsable(false)]
public ListBox ListBox => listbox;