Get Started
Documentation

SetDisplayHeadings

SetDisplayHeadings(isDisplayHeadings)

Specifies whether the current sheet row/column headers must be displayed or not.

Parameters:

Name Type Description
isDisplayHeadings boolean Specifies whether the current sheet row/column headers must be displayed or not. The default value is true.

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
oWorksheet.GetRange("A2").SetValue("The sheet settings make it display no row/column headers");
oWorksheet.SetDisplayHeadings(false);
builder.SaveFile("xlsx", "SetDisplayHeadings.xlsx");
builder.CloseFile();

Resulting document