Skip to main content
A newer version of this page is available. .

XRControl.StylePriority Property

Provides access to the settings that determine which properties of a style assigned to a control should override the corresponding properties of a control.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

[SRCategory(ReportStringId.CatAppearance)]
public virtual StylePriority StylePriority { get; }

Property Value

Type Description
StylePriority

A StylePriority object, which contains style priority settings.

Remarks

Use the StylePriority property to access the StylePriority object in every report control. By default, all the StylePriority‘s options (StylePriority.UseBackColor, StylePriority.UseBorderColor, etc.) are set to true, which means that if any style is assigned to a control via its XRControl.Styles property, all its properties will have a higher priority than the properties, which are stored in a report control or in its parent. If you want some of the properties to be determined by a report control, not by its style, set the corresponding Use* property to false.

To learn more about the styles and styles inheritance in XtraReports, refer to the Report Visual Styles document.

The following code snippets (auto-collected from DevExpress Examples) contain references to the StylePriority property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also