[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IOutlineColumn.GetCollapsed

GetCollapsed Method

GetCollapsed(int)

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.

Declaration
bool GetCollapsed(int row)
Function GetCollapsed(row As Integer) As Boolean
Parameters
Type Name Description
int row

The index of the row whose collapsed state is to be read.

Returns
Type Description
bool

true if the specified row is collapsed; otherwise, false.

Examples
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);