* UICombobox: 增加几个原生方法

This commit is contained in:
Sunny 2021-08-05 14:09:32 +08:00
parent 3b47b9f819
commit 8cce9a417e
6 changed files with 17 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,16 +49,33 @@ namespace Sunny.UI
fullControlSelect = true;
}
[DefaultValue(false)]
public bool Sorted
{
get => ListBox.Sorted;
set => ListBox.Sorted = value;
}
public int FindString(string s)
{
return ListBox.FindString(s);
}
public int FindString(string s, int startIndex)
{
return ListBox.FindString(s, startIndex);
}
public int FindStringExact(string s)
{
return ListBox.FindStringExact(s);
}
public int FindStringExact(string s, int startIndex)
{
return ListBox.FindStringExact(s, startIndex);
}
private void ListBox_ItemsRemove(object sender, EventArgs e)
{
if (ListBox.Count == 0)