SpreadsheetGear 2017
Add(FormatConditionType,ContainsOperator,String) Method






SpreadsheetGear Namespace > IFormatConditions Interface > Add Method : Add(FormatConditionType,ContainsOperator,String) Method
Specifies the type for the new conditional format. Expected value is FormatConditionType.TextString.
Specifies the text operator of the condtional format.
Specifies the comparison text of the conditional format.
Adds a new conditional format to the represented range with the specified type, text operator and comparison text.
Syntax
'Declaration
 
Overloads Function Add( _
   ByVal type As FormatConditionType, _
   ByVal textOperator As ContainsOperator, _
   ByVal comparisonText As System.String _
) As IFormatCondition
'Usage
 
Dim instance As IFormatConditions
Dim type As FormatConditionType
Dim textOperator As ContainsOperator
Dim comparisonText As System.String
Dim value As IFormatCondition
 
value = instance.Add(type, textOperator, comparisonText)

Parameters

type
Specifies the type for the new conditional format. Expected value is FormatConditionType.TextString.
textOperator
Specifies the text operator of the condtional format.
comparisonText
Specifies the comparison text of the conditional format.

Return Value

The new conditional format.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IFormatConditions Interface
IFormatConditions Members
Overload List