35 lines
748 B
C#
35 lines
748 B
C#
![]() |
using System;
|
|||
|
|
|||
|
namespace CPF.ReoGrid.Actions
|
|||
|
{
|
|||
|
public class ExpandOutlineAction : OutlineAction
|
|||
|
{
|
|||
|
public ExpandOutlineAction(RowOrColumn rowOrColumn, int start, int count) : base(rowOrColumn, start, count)
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
public override void Do()
|
|||
|
{
|
|||
|
bool flag = base.Worksheet != null;
|
|||
|
if (flag)
|
|||
|
{
|
|||
|
base.Worksheet.ExpandOutline(this.rowOrColumn, this.start, this.count);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public override void Undo()
|
|||
|
{
|
|||
|
bool flag = base.Worksheet != null;
|
|||
|
if (flag)
|
|||
|
{
|
|||
|
base.Worksheet.CollapseOutline(this.rowOrColumn, this.start, this.count);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public override string GetName()
|
|||
|
{
|
|||
|
return string.Format("Expand {0} Outline, Start at {1}, Count: {2}", base.GetRowOrColumnDesc(), this.start, this.count);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|