Back to Devexpress

XRControlStyleSheet.AddRange(XRControlStyle[]) Method

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrcontrolstylesheet-dot-addrange-x28-devexpress-dot-xtrareports-dot-ui-dot-xrcontrolstyle-x29.md

latest3.8 KB
Original Source

XRControlStyleSheet.AddRange(XRControlStyle[]) Method

Appends an array of control styles to the style sheet.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
public void AddRange(
    XRControlStyle[] styles
)
vb
Public Sub AddRange(
    styles As XRControlStyle()
)

Parameters

NameTypeDescription
stylesXRControlStyle[]

An array of XRControlStyle objects to append to the style sheet.

|

Remarks

Objects are added to the end of the style sheet in the same order that they have in the array.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AddRange(XRControlStyle[]) method.

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.

reporting-winforms-create-report-dynamically-and-bind-it-to-dataset/CS/Form1.cs#L93

csharp
// Add the styles to the report's StyleSheet collection.
    report.StyleSheet.AddRange(new XRControlStyle[] { oddStyle, evenStyle });
}

winforms-create-a-custom-exporter-for-pivotgridcontrol-with-xtrareport/CS/Report_at_Runtime/PivotReportGenerator.cs#L129

csharp
// Add styles to report's style sheet
    rep.StyleSheet.AddRange(new XRControlStyle[] { oddStyle, evenStyle });
}

reporting-winforms-create-report-dynamically-and-bind-it-to-dataset/VB/Form1.vb#L87

vb
' Add the styles to the report's StyleSheet collection.
    report.StyleSheet.AddRange(New XRControlStyle() { oddStyle, evenStyle })
End Sub

winforms-create-a-custom-exporter-for-pivotgridcontrol-with-xtrareport/VB/Report_at_Runtime/PivotReportGenerator.vb#L130

vb
' Add styles to report's style sheet
    rep.StyleSheet.AddRange(New DevExpress.XtraReports.UI.XRControlStyle() {oddStyle, evenStyle})
End Sub

See Also

Add

XRControlStyleSheet Class

XRControlStyleSheet Members

DevExpress.XtraReports.UI Namespace