The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v19.1.dll

Declaration

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

Parameters

Name Type Description
style XRControlStyle

An XRControlStyle object, containing the appearance to copy from.

Remarks

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