[]
Gets whether the specified row is collapsed in the outline column.
Use this method to read the collapsed state of a row in the outline hierarchy.
bool GetCollapsed(int row)
Function GetCollapsed(row As Integer) As Boolean
| Type | Name | Description |
|---|---|---|
| int | row | The index of the row whose collapsed state is to be read. |
| Type | Description |
|---|---|
| bool |
worksheet.Range["A1:A3"].Value = new object[,] {{"Name"}, {"Node 1"}, {"Node 1.1"}};
worksheet.Range["A3"].IndentLevel = 1;
worksheet.Outline.SummaryRow = SummaryRow.Above;
IOutlineColumn outlineColumn = worksheet.OutlineColumn;
outlineColumn.ColumnIndex = 0;
outlineColumn.ShowIndicator = true;
outlineColumn.Refresh();
outlineColumn.SetCollapsed(1, true);
bool collapsed = outlineColumn.GetCollapsed(1);