[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ISortFields.Count

Count Property

Count

Gets the number of sort fields in the sort field list.

This property represents the number of sort fields in this sort field collection.

Declaration
int Count { get; }
ReadOnly Property Count As Integer
Examples
worksheet.Range["A1:A4"].Value = new object[,] {{5}, {3}, {4}, {2}};
ISort sort = worksheet.Sort;
sort.Range = worksheet.Range["A1:A4"];
sort.SortFields.Add(new ValueSortField(worksheet.Range["A1:A4"]));
int count = sort.SortFields.Count;