Back to Devexpress

CompareNodeValuesEventArgs.NodeValue2 Property

windowsforms-devexpress-dot-xtratreelist-dot-comparenodevalueseventargs-dot-nodevalue2.md

latest2.5 KB
Original Source

CompareNodeValuesEventArgs.NodeValue2 Property

Gets the second value involved in comparison.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public object NodeValue2 { get; }
vb
Public ReadOnly Property NodeValue2 As Object

Property Value

TypeDescription
Object

An object representing the second value involved in comparison.

|

Remarks

Use the NodeValue2 property to access the value which is to be compared with the value returned by the CompareNodeValuesEventArgs.NodeValue1 property. The result of comparing these values must be specified using the CompareNodeValuesEventArgs.Result property.

The nodes containing these values can be accessed via the CompareNodeValuesEventArgs.Node1 and CompareNodeValuesEventArgs.Node2 properties. Accessing nodes is useful if you want to implement more complex sorting than can be achieved by comparing two values. For instance, you can perform comparison with respect to values of several fields.

See Also

NodeValue1

Node1

Node2

Result

CompareNodeValuesEventArgs Class

CompareNodeValuesEventArgs Members

DevExpress.XtraTreeList Namespace