Class ConditionalFormattingObject
Contains information about the condition and the formatting properties to apply.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class ConditionalFormattingObject : BaseFormattingObject, ICloneable, INotifyPropertyChanged, INotifyPropertyChangingEx, IEquatable<BaseFormattingObject>
Constructors
ConditionalFormattingObject()
Creates a new instance of the ConditionalFormattingObject class.
Declaration
public ConditionalFormattingObject()
ConditionalFormattingObject(String, ConditionTypes, String, String, Boolean)
Initializes a new instance of the ConditionalFormattingObject class.
Declaration
public ConditionalFormattingObject(string name, ConditionTypes type, string tvalue1, string tvalue2, bool applyToRow)
Parameters
System.String
name
Formatting object name. |
ConditionTypes
type
The condition type. |
System.String
tvalue1
Left value of the condition. |
System.String
tvalue2
Right value of the condition. |
System.Boolean
applyToRow
Determines if the condition should be applied on a row. |
Properties
CaseSensitive
Determines whether case-sensitive comparisons will be made when evaluating string values.
Declaration
public bool CaseSensitive { get; set; }
Property Value
System.Boolean
|
ConditionType
Gets or sets a value containing condition's type
Declaration
public ConditionTypes ConditionType { get; set; }
Property Value
ConditionTypes
|
TValue1
Gets or sets a value containing condition's left value
Declaration
public string TValue1 { get; set; }
Property Value
System.String
|
TValue2
Gets or sets a value containing condition's right value
Declaration
public string TValue2 { get; set; }
Property Value
System.String
|
Methods
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public override object Clone()
Returns
System.Object
|
Overrides
Copy(BaseFormattingObject)
Copies the source's settings to this instance.
Declaration
public override void Copy(BaseFormattingObject source)
Parameters
BaseFormattingObject
source
|
Overrides
Evaluate(GridViewRowInfo, GridViewColumn)
Evaluates the condition specified by this object against the actualValue.
Declaration
public override bool Evaluate(GridViewRowInfo row, GridViewColumn column)
Parameters
GridViewRowInfo
row
RadGridView row. |
GridViewColumn
column
RadGridView column. |
Returns
System.Boolean
Returns true if the formatting object should apply. |