ClassBaseFormattingObject
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
BaseFormattingObject()
Creates a new instance of the BaseFormattingObject class.
Declaration
public BaseFormattingObject()
BaseFormattingObject(string, bool)
Creates a new instance of the BaseFormattingObject class.
Properties
ApplyOnSelectedRows
Gets or sets a value indicating whether the condition should be applied on selected rows.
ApplyToRow
Gets or sets a value indicating that the condition should be applied on a row
CellBackColor
Gets or sets a value indicating what BackColor to apply on the cell
CellFont
Gets or sets a value indicating what Font to apply on the cell.
CellForeColor
Gets or sets a value indicating what ForeColor to apply on the cell
Enabled
Determines whether the condition is enabled (can be evaluated and applied).
Name
Gets or sets a value containing condition's name
RowBackColor
Gets or sets a value indicating what BackColor to apply on the row
RowFont
Gets or sets a value indicating what Font to apply on the row.
RowForeColor
Gets or sets a value indicating what ForeColor to apply on the row
RowTextAlignment
Determines what TextAlignment to apply to child cells when ApplyToRow is true.
Declaration
public ContentAlignment RowTextAlignment { get; set; }
Property Value
TextAlignment
Gets or sets a value indicating what TextAlignment to apply
Declaration
public ContentAlignment TextAlignment { get; set; }
Property Value
Methods
Clone()
Creates a new object that is a copy of the current instance.
Copy(BaseFormattingObject)
Copies the source's settings to this instance.
Declaration
public virtual void Copy(BaseFormattingObject source)
Parameters
source
Equals(BaseFormattingObject)
Returns whether the BaseFormattingObject equals the specified format.
Declaration
public bool Equals(BaseFormattingObject format)
Parameters
format
The format.
Returns
Implements
Equals(object)
Checks whether a BaseFormattingObject is equal by content.
Declaration
public override bool Equals(object obj)
Parameters
obj
The BaseFormattingObject to compare with.
Returns
true if the content is equal.
Overrides
Evaluate(GridViewRowInfo, GridViewColumn)
Evaluates the condition or expression of the formatting object.
Declaration
public virtual bool Evaluate(GridViewRowInfo row, GridViewColumn column)
Parameters
row
RadGridView row.
column
RadGridView column.
Returns
Returns true if the formatting object should apply.
GetHashCode()
Serves as a hash function for a particular type.
IsValueSet(string)
Determines whether a non-default value is specified for the
OnPropertyChanged(string)
Raises the PropertyChanged event.
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
propertyName
The property name.
OnPropertyChanging(string)
Raises the PropertyChanging event.
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements
PropertyChanging
Occurs when a property value is changing.
Declaration
public event PropertyChangingEventHandlerEx PropertyChanging
Event Value
Implements