[]
Gets the number of sort fields in the sort field list.
This property represents the number of sort fields in this sort field collection.
int Count { get; }
ReadOnly Property Count As Integer
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;