Class
ExpressionFormattingObject

Contains information about the expression and the formatting properties to apply.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class ExpressionFormattingObject : BaseFormattingObject, ICloneable, INotifyPropertyChanged, INotifyPropertyChangingEx, IEquatable<BaseFormattingObject>

Inheritance: objectBaseFormattingObjectExpressionFormattingObject

Implements: ICloneableIEquatable<BaseFormattingObject>INotifyPropertyChangedINotifyPropertyChangingEx

Inherited Members BaseFormattingObject.Equals(object)BaseFormattingObject.GetHashCode()BaseFormattingObject.IsValueSet(string)BaseFormattingObject.OnPropertyChanging(string)BaseFormattingObject.OnPropertyChanged(string)BaseFormattingObject.Equals(BaseFormattingObject)BaseFormattingObject.TextAlignmentBaseFormattingObject.RowTextAlignmentBaseFormattingObject.EnabledBaseFormattingObject.CellForeColorBaseFormattingObject.CellBackColorBaseFormattingObject.RowForeColorBaseFormattingObject.RowBackColorBaseFormattingObject.CellFontBaseFormattingObject.RowFontBaseFormattingObject.NameBaseFormattingObject.ApplyToRowBaseFormattingObject.ApplyOnSelectedRowsBaseFormattingObject.PropertyChangedBaseFormattingObject.PropertyChanging

Constructors

ExpressionFormattingObject()

Creates a new instance of the ConditionalFormattingObject class.

Declaration

cs-api-definition
public ExpressionFormattingObject()

ExpressionFormattingObject(string, string, bool)

Creates a new instance of the ConditionalFormattingObject class.

Declaration

cs-api-definition
public ExpressionFormattingObject(string name, string expression, bool applyToRow)

Parameters

name

string

Formatting object name.

expression

string

The expression of the formatting object.

applyToRow

bool

Determines if the condition should be applied on a row.

Properties

Expression

Gets or sets the expression of the object.

Declaration

cs-api-definition
public string Expression { get; set; }

Property Value

string

Methods

Clone()

Creates a new object that is a copy of the current instance.

Declaration

cs-api-definition
public override object Clone()

Returns

object

Overrides BaseFormattingObject.Clone()

Copy(BaseFormattingObject)

Copies the source's settings to this instance.

Declaration

cs-api-definition
public override void Copy(BaseFormattingObject source)

Parameters

source

BaseFormattingObject

Overrides BaseFormattingObject.Copy(BaseFormattingObject)

Evaluate(GridViewRowInfo, GridViewColumn)

Evaluates the expression of the formatting object.

Declaration

cs-api-definition
public override bool Evaluate(GridViewRowInfo row, GridViewColumn column)

Parameters

row

GridViewRowInfo

RadGridView row.

column

GridViewColumn

RadGridView column.

Returns

bool

Returns true if the formatting object should apply.

Overrides BaseFormattingObject.Evaluate(GridViewRowInfo, GridViewColumn)