Click or drag to resize

ConditionalFormatRuleSetContainText Method

Sets a 'Cells with Specific Text' formatting condition to this conditional formatting rule.

Namespace:  GemBox.Spreadsheet.ConditionalFormatting
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 43.0.35.1066
Syntax
public ContainTextCondition SetContainText(
	ContainTextOperator operator,
	string value
)

Parameters

operator
Type: GemBox.Spreadsheet.ConditionalFormattingContainTextOperator
The textual operator.
value
Type: SystemString
The value (constant string or formula).

Return Value

Type: ContainTextCondition
A ContainTextCondition set to this conditional formatting rule which can be used to customize the formatting.
Exceptions
ExceptionCondition
ArgumentNullExceptionParameter value is .
Remarks

Value can be either constant or formula.

If value is constant, then it cannot be .

If value is formula, it must start with '='.

See Also