Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

StylePriority Class

A container of 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.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

public class StylePriority :
    StyleFlagsBase

The following members return StylePriority objects:

#Remarks

An object of the StylePriority class can be accessed via the XRControl.StylePriority property of 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.

#Inheritance

See Also