FormattingRule.ApplyStyle(XRControlStyle) Method

Copies the appearance from the specified style and applies it to the rule's FormattingRule.Formatting object.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll


public void ApplyStyle(
    XRControlStyle style
Public Sub ApplyStyle(
    style As XRControlStyle


Type Name Description
XRControlStyle style

An XRControlStyle object, containing the appearance to copy from.


The ApplyStyle method copies all the values of a style's appearance properties (e.g. BackColor, Font, ForeColor) to the corresponding properties of a Formatting object, which is returned by the FormattingRule.Formatting property of the current rule.

This may be required if your report already contains several styles in its XtraReport.StyleSheet collection, and you want to conditionally apply these styles to report controls or bands.

See Also