GcSpread.Sheets Namespace > TextCondition type : TextCondition Constructor |
var instance = new GcSpread.Sheets.TextCondition(compareType, expected, formula);
function TextCondition( compareType : TextCompareType, expected : string, formula : string ) : TextCondition;
var nCondition = new GcSpread.Sheets.TextCondition(GcSpread.Sheets.TextCompareType.Contains, "test"); var validator = new GcSpread.Sheets.DefaultDataValidator(nCondition) activeSheet.getCell(0, 0, GcSpread.Sheets.SheetArea.viewport).dataValidator(validator); spread.highlightInvalidData(true); activeSheet.setValue(0, 0, "testing"); //Type text in 0,0 that does not contain "test" to see invalid symbol