Skip to main content

AutoCompleteFilterMode Enumeration

Specifies how text in the text box portion of the AutoCompleteBox control is used to filter items specified by the ItemsSource property for display in the drop-down.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public enum AutoCompleteFilterMode
View Source

Members

None0Specifies that no filter is used. All items are returned.
StartsWith1Specifies a culture-sensitive, case-insensitive filter where the returned items start with the specified text. The filter uses the StartsWith(String, StringComparison) method, specifying CurrentCultureIgnoreCase as the string comparison criteria.
StartsWithCaseSensitive2Specifies a culture-sensitive, case-sensitive filter where the returned items start with the specified text. The filter uses the StartsWith(String, StringComparison) method, specifying CurrentCulture as the string comparison criteria.
StartsWithOrdinal3Specifies an ordinal, case-insensitive filter where the returned items start with the specified text. The filter uses the StartsWith(String, StringComparison) method, specifying OrdinalIgnoreCase as the string comparison criteria.
StartsWithOrdinalCaseSensitive4Specifies an ordinal, case-sensitive filter where the returned items start with the specified text. The filter uses the StartsWith(String, StringComparison) method, specifying Ordinal as the string comparison criteria.
Contains5Specifies a culture-sensitive, case-insensitive filter where the returned items contain the specified text.
ContainsCaseSensitive6Specifies a culture-sensitive, case-sensitive filter where the returned items contain the specified text.
ContainsOrdinal7Specifies an ordinal, case-insensitive filter where the returned items contain the specified text.
ContainsOrdinalCaseSensitive8Specifies an ordinal, case-sensitive filter where the returned items contain the specified text.
Equals9Specifies a culture-sensitive, case-insensitive filter where the returned items equal the specified text. The filter uses the Equals(String, StringComparison) method, specifying CurrentCultureIgnoreCase as the search comparison criteria.
EqualsCaseSensitive10Specifies a culture-sensitive, case-sensitive filter where the returned items equal the specified text. The filter uses the Equals(String, StringComparison) method, specifying CurrentCulture as the string comparison criteria.
EqualsOrdinal11Specifies an ordinal, case-insensitive filter where the returned items equal the specified text. The filter uses the Equals(String, StringComparison) method, specifying OrdinalIgnoreCase as the string comparison criteria.
EqualsOrdinalCaseSensitive12Specifies an ordinal, case-sensitive filter where the returned items equal the specified text. The filter uses the Equals(String, StringComparison) method, specifying Ordinal as the string comparison criteria.
Custom13Specifies that a custom filter is used. This mode is used when the TextFilter or ItemFilter properties are set.

See Also

Reference

Avalonia.Controls Namespace