Back to Devexpress

XPView.AddProperty(String, CriteriaOperator, Boolean) Method

xpo-devexpress-dot-xpo-dot-xpview-dot-addproperty-x28-system-dot-string-devexpress-dot-data-dot-filtering-dot-criteriaoperator-system-dot-boolean-x29.md

latest2.2 KB
Original Source

XPView.AddProperty(String, CriteriaOperator, Boolean) Method

Creates a new ViewProperty object with the specified expression and appends it to the XPView.Properties collection.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public ViewProperty AddProperty(
    string name,
    CriteriaOperator property,
    bool group
)
vb
Public Function AddProperty(
    name As String,
    property As CriteriaOperator,
    group As Boolean
) As ViewProperty

Parameters

NameTypeDescription
nameString

A String value which specifies the property name. This value is assigned to the ViewProperty.Name property.

| | property | CriteriaOperator |

A CriteriaOperator object which specifies the expression used to calculate the values in a column.

| | group | Boolean |

true to group the view by this property; otherwise, false. This value is assigned to the ViewProperty.Group property.

|

Returns

TypeDescription
ViewProperty

The ViewProperty object that was added to the collection.

|

See Also

XPView Class

XPView Members

DevExpress.Xpo Namespace