[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.SortFieldBase.SortOn

SortOn Property

SortOn

Gets the criterion used by this sort field.

The returned value depends on the concrete sort-field type. A ValueSortField returns Values, a CellColorSortField returns CellColor, a FontColorSortField returns FontColor, and an IconSortField returns CellIcon.

Declaration
public virtual SortOnType SortOn { get; }
Public Overridable ReadOnly Property SortOn As SortOnType
Implements
Examples
worksheet.Range["A1:A3"].Value = new object[,] {
    {3}, {1}, {2}
};
SortFieldBase sortField = new ValueSortField(worksheet.Range["A1:A3"], SortOrder.Ascending);
SortOnType sortOn = sortField.SortOn;