[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ISortField.Key

Key Property

Key

Gets the sort key range.

This property represents the range used as the sort key for this ISortField.

Declaration
IRange Key { get; }
ReadOnly Property Key As IRange
Examples
worksheet.Range["A1:B4"].Value = new object[,] {
    {"Name", "Score"},
    {"Tom", 80},
    {"Ada", 95},
    {"Ken", 88}
};
ISortField sortField = new ValueSortField(worksheet.Range["B2:B4"], SortOrder.Ascending);
IRange key = sortField.Key;