[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IOutlineColumn.Refresh

Refresh Method

Refresh()

Refreshes the outline column.

Rebuilds the row outline hierarchy for the current outline column based on the current indent levels in the worksheet. Use this method after changing the hierarchical data or updating indent levels to apply the latest outline structure.

Declaration
void Refresh()
Sub Refresh()
Examples
worksheet.Range["A1:A4"].Value = new object[,] {{"Name"}, {"Node 1"}, {"Node 1.1"}, {"Node 2"}};
worksheet.Range["A3"].IndentLevel = 1;
IOutlineColumn outlineColumn = worksheet.OutlineColumn;
outlineColumn.ColumnIndex = 0;
worksheet.Range["A4"].IndentLevel = 1;
outlineColumn.Refresh();