Class ConditionValue
Represents implementation of single condition value for iconset, databar, colorscale conditions.
Implements
Namespace: Syncfusion.XlsIO
Assembly: Syncfusion.XlsIO.Portable.dll
Syntax
public class ConditionValue : Object, IConditionValue
Constructors
ConditionValue(ConditionValueType, String)
Initializes new instance of the class.
Declaration
public ConditionValue(ConditionValueType type, string value)
Parameters
Type | Name | Description |
---|---|---|
ConditionValueType | type | Condition type. |
System.String | value | Condition value. |
Properties
Operator
Gets or sets one of the constants of the ConditionalFormatOperator which specifes operator for the threshold values in the conditional format.
Declaration
public ConditionalFormatOperator Operator { get; set; }
Property Value
Type |
---|
ConditionalFormatOperator |
Type
Declaration
public ConditionValueType Type { get; set; }
Property Value
Type |
---|
ConditionValueType |
Value
Gets or sets the shortest bar or longest bar threshold value for a data bar conditional format.
Declaration
public string Value { get; set; }
Property Value
Type |
---|
System.String |
Methods
Equals(Object)
Determines whether the specified Object is equal to the current Object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The Object to compare with the current Object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified Object is equal to the current Object; otherwise, false. |
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A 32-bit signed integer hash code. |
Operators
Equality(ConditionValue, ConditionValue)
Equality comparison.
Declaration
public static bool operator ==(ConditionValue first, ConditionValue second)
Parameters
Type | Name | Description |
---|---|---|
ConditionValue | first | The first condition to compare. |
ConditionValue | second | The second condition to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if conditions are equal. |
Inequality(ConditionValue, ConditionValue)
Checks whether conditions are not equal.
Declaration
public static bool operator !=(ConditionValue first, ConditionValue second)
Parameters
Type | Name | Description |
---|---|---|
ConditionValue | first | The first condition to compare. |
ConditionValue | second | The second condition to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if conditions are not equal. |