[]
Gets or sets whether the sort range contains a header.
Use this property to determine whether the current sort configuration treats the first row in the sort range as a header row.
bool Header { get; set; }
Property Header As Boolean
worksheet.Range["A1:B3"].Value = new object[,] {
{"Name", "Score"},
{"Alice", 100},
{"Bob", 200}
};
ITable table = worksheet.Tables.Add(worksheet.Range["A1:B3"], true);
bool hasHeader = table.Sort.Header;