[]
        
(Showing Draft Content)

C1.C1Preview.DataBinding.SortExpressionCollection.Add

Add Method

Add(string)

Adds an ascending SortExpression specified by the expression text to the current collection.

Declaration
public SortExpression Add(string expression)
Public Function Add(expression As String) As SortExpression
Parameters
Type Name Description
string expression

The sort expression text.

Returns
Type Description
SortExpression

The SortExpression object that was created and added to the current collection.

Add(string, SortDirectionEnum)

Adds a SortExpression specified by the expression text and sort direction to the current collection.

Declaration
public SortExpression Add(string expression, SortDirectionEnum sortDirection)
Public Function Add(expression As String, sortDirection As SortDirectionEnum) As SortExpression
Parameters
Type Name Description
string expression

The sort expression text.

SortDirectionEnum sortDirection

The sort direction.

Returns
Type Description
SortExpression

The SortExpression object that was created and added to the current collection.

Add(SortExpression)

Adds a SortExpression object to the current collection.

Declaration
public int Add(SortExpression expression)
Public Function Add(expression As SortExpression) As Integer
Parameters
Type Name Description
SortExpression expression

The SortExpression object to add.

Returns
Type Description
int

The index of the added object in the current collection.