* UICombobox:增加FindString方法
This commit is contained in:
parent
dc91d5f879
commit
b0a7f4d51b
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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)
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user