CPF/CPF.ReoGrid/Actions/BaseOutlineAction.cs

41 lines
656 B
C#
Raw Normal View History

2024-06-24 10:15:59 +08:00
using System;
namespace CPF.ReoGrid.Actions
{
public abstract class BaseOutlineAction : BaseWorksheetAction
{
public RowOrColumn RowOrColumn
{
get
{
return this.rowOrColumn;
}
}
public BaseOutlineAction(RowOrColumn rowOrColumn)
{
this.rowOrColumn = rowOrColumn;
}
protected internal string GetRowOrColumnDesc()
{
string result;
switch (this.rowOrColumn)
{
case RowOrColumn.Row:
result = "Row";
break;
case RowOrColumn.Column:
result = "Column";
break;
default:
result = "Row and Column";
break;
}
return result;
}
protected internal RowOrColumn rowOrColumn;
}
}