namespace UIWidgets
{
///
/// Autocomplete for ListViewString.
///
public class AutocompleteString : AutocompleteCustom
{
///
/// Determines whether the beginning of value matches the Input.
///
/// Value.
/// true if beginning of value matches the Input; otherwise, false.
public override bool Startswith(string value)
{
return UtilitiesCompare.StartsWith(value, Query, CaseSensitive);
}
///
/// Returns a value indicating whether Input occurs within specified value.
///
/// Value.
/// true if the Input occurs within value parameter; otherwise, false.
public override bool Contains(string value)
{
return UtilitiesCompare.Contains(value, Query, CaseSensitive);
}
///
/// Convert value to string.
///
/// The string value.
/// Value.
protected override string GetStringValue(string value)
{
return value;
}
}
}