FormatRuleBase.StopIfTrue Property
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.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v19.2.dll
Declaration
[DefaultValue(false)]
[XtraSerializableProperty]
[DXCategory("Behavior")]
public bool StopIfTrue { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | **false** | true, if subsequent format rules that target a specific cell should be ignored if the current format rule evaluates to true for this cell; otherwise, false. |
Remarks
Multiple style format rules can be created in a container control. All of them are stored in the container control’s dedicated collection and they are applied in the order specified by this collection.
If a FormatRuleBase object evaluates to true and its StopIfTrue property is enabled, subsequent style format rules that target the same cell are ignored. Otherwise, the cell’s appearance will be affected by all corresponding style format rules. Subsequent format rules may override the appearance settings imposed on this cell by preceding format rules.