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

XtraReport.StyleSheet Property

Provides access to a collection of styles stored in a report.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v19.2.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

[SRCategory(ReportStringId.CatAppearance)]
public XRControlStyleSheet StyleSheet { get; }

Property Value

Type Description
XRControlStyleSheet

An XRControlStyleSheet object, that represents the collection of XRControlStyle objects.

Remarks

In addition to the appearance properties, which specify the appearance of a certain report control or a band, it is also possible to create and apply styles to them. A style contains the same set of appearance properties (e.g. BackColor, Font, ForeColor), some of which can be set and others not. All styles within a single report are stored in a report’s StyleSheet collection, and so this allows applying the same style to multiple report controls or bands.

Also, if a report’s style sheet is stored in an external file, it is possible to load it into the existing style sheet via the XRControlStyleSheet.LoadFromFile method, or provide its path via the XtraReport.StyleSheetPath property. Note that the styles loaded from the file specified by the StyleSheetPath property will file have a higher priority than the styles which exist in a report’s StyleSheet.

For more information on using this property, refer to the Report Visual Styles document.

The following code snippets (auto-collected from DevExpress Examples) contain references to the StyleSheet 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