FormatCondition Class
Represents a base class for all conditions that can be specified in a conditional formatting rule.
- Inheritance:
- System.ObjectFormatCondition
- Derived
Properties
ConditionType
Gets the condition type.
public abstract FormatConditionType ConditionType { get; }
Public MustOverride ReadOnly Property ConditionType As FormatConditionType
Property Value
The condition type.
Rule
Gets the conditional formatting rule associated with this condition.
public ConditionalFormatRule Rule { get; }
Public ReadOnly Property Rule As ConditionalFormatRule
Property Value
The conditional formatting rule associated with this condition.
Exceptions
- System.InvalidOperationException
Format condition is invalid because it is no longer associated with any conditional formatting rule.
Methods
ToString()
Returns a System.String that represents this FormatCondition instance.
public abstract override string ToString()
Public MustOverride Overrides Function ToString As String
Returns
- System.String
A System.String that represents this FormatCondition instance.
Overrides
System.Object.ToString()
Remarks
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).