CheckCell.WorkbookState.MarkAsOK C# (CSharp) Method

MarkAsOK() private method

private MarkAsOK ( ) : void
return void
        internal void MarkAsOK()
        {
            // the user told us that the cell was OK
            _known_good.Add(_flagged_cell);

            // set the color of the cell to green
            var cell = _flagged_cell.GetCOMObject(_app);
            cell.Interior.Color = GREEN;

            // restore output colors
            RestoreOutputColors();

            // flag another value
            Flag();
        }

Usage Example

Example #1
0
 private void MarkAsOKButton_Click(object sender, RibbonControlEventArgs e)
 {
     current_workbook.MarkAsOK();
     SetUIState(current_workbook);
 }