[]
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.
public virtual SortOnType SortOn { get; }
Public Overridable ReadOnly Property SortOn As SortOnType
worksheet.Range["A1:A3"].Value = new object[,] {
{3}, {1}, {2}
};
SortFieldBase sortField = new ValueSortField(worksheet.Range["A1:A3"], SortOrder.Ascending);
SortOnType sortOn = sortField.SortOn;