[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ISortField.SortOn

SortOn Property

SortOn

Gets the sort type.

This value indicates the criterion used by the sort field, such as values, cell color, font color, or icons.

Declaration
SortOnType SortOn { get; }
ReadOnly Property SortOn As SortOnType
Examples
worksheet.Range["A1:B4"].Value = new object[,] {
    {"Name", "Score"},
    {"Tom", 90},
    {"Amy", 80},
    {"Ken", 95}
};
IValueSortField sortField = new ValueSortField(worksheet.Range["B2:B4"], SortOrder.Ascending);
SortOnType sortOn = sortField.SortOn;