Version

ComparisonCondition Constructor(ComparisonOperator,Object,String)

Constructor. Initializes a new instance of ComparisonCondition.
Syntax
'Declaration
 
Public Function New( _
   ByVal comparisonOperator As ComparisonOperator, _
   ByVal value As Object, _
   ByVal displayText As String _
)
public ComparisonCondition( 
   ComparisonOperator comparisonOperator,
   object value,
   string displayText
)

Parameters

comparisonOperator
Comparison operator.
value
Compare value. This is the right hand side value of the comparison operator.
displayText
The text to return from the ToString() method.
Remarks

Note: if DisplayText is supplied then the user will see the 'Equals' operator in a filter cell when this ComparisonCondition is selected. Also, if the operator is subsequently changed then the condition will be cleared. The reason for this behavior is that the display text may include context that is related to its own operator. Therefore, any additional operator displayed to the user (other than 'Equals') may be incorrect. For eaxmple, if the ComparisonCondition Operator was 'NotEquals', the Value was '0' and the DisplayText was 'None Zero'.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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