ExcelFormulaParser.Engine.Excel.Functions.FunctionArgument.SetExcelStateFlag C# (CSharp) Method

SetExcelStateFlag() public method

public SetExcelStateFlag ( ExcelCellState state ) : void
state ExcelCellState
return void
        public void SetExcelStateFlag(ExcelCellState state)
        {
            _excelCellState |= state;
        }

Usage Example

 public void ShouldSetExcelState()
 {
     var arg = new FunctionArgument(2);
     arg.SetExcelStateFlag(ExcelCellState.HiddenCell);
     Assert.IsTrue(arg.ExcelStateFlagIsSet(ExcelCellState.HiddenCell));
 }