Back to Devexpress

TreeListOptionsFind.Condition Property

windowsforms-devexpress-dot-xtratreelist-dot-columns-dot-treelistoptionsfind.md

latest3.1 KB
Original Source

TreeListOptionsFind.Condition Property

Gets or sets the operator (Starts With, Contains, etc.) used to evaluate words in cells against keywords in the Find Panel.

Namespace : DevExpress.XtraTreeList.Columns

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
[DefaultValue(FilterCondition.Default)]
[DXCategory("Data")]
[XtraSerializableProperty]
public virtual FilterCondition Condition { get; set; }
vb
<DXCategory("Data")>
<DefaultValue(FilterCondition.Default)>
<XtraSerializableProperty>
Public Overridable Property Condition As FilterCondition

Property Value

TypeDefaultDescription
FilterConditionDefault

Specifies the filter condition.

|

Available values:

NameDescription
Contains

Specifies the Contains comparison operation.

| | StartsWith |

Specifies the StartsWith comparison operation.

| | Like |

Specifies the Like comparison operation.

| | Default |

Specifies the default comparison operation.

| | Equals |

Specifies the Equals comparison operation.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Condition
TreeList

.OptionsFind .Condition

|

Remarks

The Condition property accepts the following values. (Run the XtraTreeList demo to test these modes.)

  • FilterCondition.Default - inherits the global WindowsFormsSettings.FindPanelCondition property value.

  • FilterCondition.Contains - searches for all cells that contain the specified text, regardless of its position within the cell.

  • FilterCondition.StartsWith - searches for cells with text that starts with the search string.

  • FilterCondition.Equals - searches for cells with text that is an exact match with the search string.

  • FilterCondition.Like - allows users to enter the “%” character that is a wildcard for any number of characters.

See Also

TreeListOptionsFind Class

TreeListOptionsFind Members

DevExpress.XtraTreeList.Columns Namespace