Back to Devexpress

XtraReport.StyleSheet Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xtrareport-36f2c375.md

latest2.9 KB
Original Source

XtraReport.StyleSheet Property

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

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[SRCategory(ReportStringId.CatAppearance)]
public XRControlStyleSheet StyleSheet { get; }
vb
<SRCategory(ReportStringId.CatAppearance)>
Public ReadOnly Property StyleSheet As XRControlStyleSheet

Property Value

TypeDescription
XRControlStyleSheet

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

|

Remarks

In addition to appearance properties that specify report control and band appearance, it is also possible to create and apply styles. A style contains the same set of appearance properties (e.g., BackColor , Font , ForeColor ), several of these can be set, while others cannot. All styles within a single report are stored in the report’s StyleSheet collection; this allows you to apply the same style to multiple report controls or bands.

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

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

See Also

StyleSheetPath

Report Visual Styles

XtraReport Class

XtraReport Members

DevExpress.XtraReports.UI Namespace