C# Class Microsoft.VisualStudio.R.Package.DataInspect.SortOrder

Describes sorting set in details grid
Inheritance: ISortOrder
Afficher le fichier Open project: Microsoft/RTVS Class Usage Examples

Méthodes publiques

Méthode Description
Add ( ColumnSortOrder order ) : void
Add ( HeaderTextVisual v ) : void

Adds column to the sorting order. Typically called when user Shift+Click on the column header adding it to the set. If the column is already in the set, the call does nothing.

GetRowSelector ( ) : string Complete expression looks like: function(x) order(x[,col_idx1], -x[,col_idx1], ...) where minus tells R that the column sort order is descending rather than ascending.
ResetTo ( HeaderTextVisual v ) : void

Resets sort to one column assuming default (ascending) order. Typically called as a result of click on one of the column headers which clears current sort across all columns and sets the clicked column as primary with the default sorting order.

Method Details

Add() public méthode

public Add ( ColumnSortOrder order ) : void
order ColumnSortOrder
Résultat void

Add() public méthode

Adds column to the sorting order. Typically called when user Shift+Click on the column header adding it to the set. If the column is already in the set, the call does nothing.
public Add ( HeaderTextVisual v ) : void
v HeaderTextVisual
Résultat void

GetRowSelector() public méthode

Complete expression looks like: function(x) order(x[,col_idx1], -x[,col_idx1], ...) where minus tells R that the column sort order is descending rather than ascending.
public GetRowSelector ( ) : string
Résultat string

ResetTo() public méthode

Resets sort to one column assuming default (ascending) order. Typically called as a result of click on one of the column headers which clears current sort across all columns and sets the clicked column as primary with the default sorting order.
public ResetTo ( HeaderTextVisual v ) : void
v HeaderTextVisual
Résultat void