Skip to main content

GridFormatRule Members

Specifies a single style format rule for a grid control’s View.

Constructors

Name Description
GridFormatRule() Initializes a new instance of a GridFormatRule class.
GridFormatRule(FormatConditionRuleBase) Initializes a new instance of a GridFormatRule class with the specified style format rule.

Properties

Name Description
ApplyToRow Gets or sets whether the format is applied to an entire row.
Collection Gets the collection that owns the current GridFormatRule object.
Column Gets or sets a column that provides values to test against the current format rule. By default, the format is applied to this column.
ColumnApplyTo Gets or sets a column, to which the format should be applied instead of the column specified by the GridFormatRule.Column property.
ColumnApplyToName This member supports the internal infrastructure, and is not intended to be used directly from your code.
ColumnFieldName This member supports the internal infrastructure, and is not intended to be used directly from your code. Inherited from FormatRuleBase.
ColumnName This member supports the internal infrastructure, and is not intended to be used directly from your code.
Description Gets or sets the text description of the format rule. Inherited from FormatRuleBase.
Enabled Gets or sets whether the current FormatRuleBase object is enabled. Inherited from FormatRuleBase.
IsValid Gets whether the current GridFormatRule object is properly customized.
Name Gets or sets the name of the current object. Inherited from FormatRuleBase.
Rule Gets or sets the style format rule, which defines the condition and appearance settings applied when the condition is true. Inherited from FormatRuleBase.
RuleType This member supports the internal infrastructure, and is not intended to be used directly from your code. Inherited from FormatRuleBase.
StopIfTrue Gets or sets whether subsequent format rules that target a specific cell should be ignored if the current format rule evaluates to true for this cell. Inherited from FormatRuleBase.
Tag Gets or sets custom data associated with the current FormatRuleBase object. Inherited from FormatRuleBase.

Methods

Name Description
Assign(FormatRuleBase) Copies settings from the specified object to the current object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
IsFit() Inherited from FormatRuleBase.
IsFit(IFormatConditionRuleValueProvider) Returns whether the current rule (FormatRuleBase.Rule) evaluates to “true” for input values provided by the specified valueProvider. Inherited from FormatRuleBase.
IsFit(GridColumn, Int32) Returns whether the current format rule evaluates to “true” for the specified cell.
IsFit(Object, Int32) Returns whether the current format rule evaluates to “true” for the specified cell value in the specified row.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
QueryAppearance(GridColumn, Int32) Returns the appearance settings to apply to a specific cell.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
RuleCast<T>() Returns the FormatRuleBase.Rule object type-cast to the specified type. Inherited from FormatRuleBase.
ToString() Returns the text representation of the current FormatRuleBase object. Inherited from FormatRuleBase.
See Also