Spread.Sheets Documentation
useWildCards Method
GC.Spread.Sheets.ConditionalFormatting Namespace > Condition type : useWildCards Method
Whether to compare strings using wildcards.
Gets or sets whether to compare strings using wildcards.
Syntax
var instance = new GC.Spread.Sheets.ConditionalFormatting.Condition(conditionType, args);
var returnValue; // Type: any
returnValue = instance.useWildCards(value);
function useWildCards( 
   value : boolean
) : any;

Parameters

value
Whether to compare strings using wildcards.

Return Value

If no value is set, returns whether to compare strings using wildcards; otherwise, returns the condition.
Example
This example allows wildcards.
var nCondition = new GC.Spread.Sheets.ConditionalFormatting.Condition(GC.Spread.Sheets.ConditionalFormatting.ConditionType.textCondition);
nCondition.compareType(GC.Spread.Sheets.ConditionalFormatting.TextCompareType.contains);
nCondition.expected("te?t");
nCondition.ignoreBlank(true);
nCondition.ignoreCase(true);
nCondition.useWildCards(true);
var validator = new GC.Spread.Sheets.DataValidation.DefaultDataValidator(nCondition);
validator.type(GC.Spread.Sheets.DataValidation.CriteriaType.custom);
activeSheet.getCell(0, 0, GC.Spread.Sheets.SheetArea.viewport).validator(validator);
spread.options.highlightInvalidData = true;
activeSheet.setValue(0, 0, "testing");
See Also

Reference

Condition type