BaseFormattingObject
Contains information about the formatting properties to apply.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
[Browsable(false)]
public class BaseFormattingObject : ICloneable, INotifyPropertyChanged, INotifyPropertyChangingEx, IEquatable<BaseFormattingObject>
Inheritance: objectBaseFormattingObject
Derived Classes:
Implements:
Constructors
Creates a new instance of the BaseFormattingObject class.
public BaseFormattingObject()
Properties
Gets or sets a value indicating whether the condition should be applied on selected rows.
public bool ApplyOnSelectedRows { get; set; }
Gets or sets a value indicating that the condition should be applied on a row
public bool ApplyToRow { get; set; }
Gets or sets a value indicating what BackColor to apply on the cell
public Color CellBackColor { get; set; }
Gets or sets a value indicating what Font to apply on the cell.
public Font CellFont { get; set; }
Gets or sets a value indicating what ForeColor to apply on the cell
public Color CellForeColor { get; set; }
Determines whether the condition is enabled (can be evaluated and applied).
public bool Enabled { get; set; }
Gets or sets a value indicating what BackColor to apply on the row
public Color RowBackColor { get; set; }
Gets or sets a value indicating what Font to apply on the row.
public Font RowFont { get; set; }
Gets or sets a value indicating what ForeColor to apply on the row
public Color RowForeColor { get; set; }
Determines what TextAlignment to apply to child cells when ApplyToRow is true.
public ContentAlignment RowTextAlignment { get; set; }
Gets or sets a value indicating what TextAlignment to apply
public ContentAlignment TextAlignment { get; set; }
Methods
Creates a new object that is a copy of the current instance.
Copies the source's settings to this instance.
Returns whether the BaseFormattingObject equals the specified format.
public bool Equals(BaseFormattingObject format)
The format.
Returns:Implements:
Checks whether a BaseFormattingObject is equal by content.
public override bool Equals(object obj)
The BaseFormattingObject to compare with.
Returns:true if the content is equal.
Overrides:
Evaluates the condition or expression of the formatting object.
public virtual bool Evaluate(GridViewRowInfo row, GridViewColumn column)
RadGridView row.
columnGridViewColumnRadGridView column.
Returns:Returns true if the formatting object should apply.
Raises the PropertyChanged event.
protected virtual void OnPropertyChanged(string propertyName)
The property name.
Events
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged
Implements:
Occurs when a property value is changing.
public event PropertyChangingEventHandlerEx PropertyChanging
Implements: