xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrcontrolstylesheet-dot-addrange-x28-devexpress-dot-xtrareports-dot-ui-dot-xrcontrolstyle-x29.md
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
public void AddRange(
XRControlStyle[] styles
)
Public Sub AddRange(
styles As XRControlStyle()
)
| Name | Type | Description |
|---|---|---|
| styles | XRControlStyle[] |
An array of XRControlStyle objects to append to the style sheet.
|
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
// Add the styles to the report's StyleSheet collection.
report.StyleSheet.AddRange(new XRControlStyle[] { oddStyle, evenStyle });
}
// 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
' Add the styles to the report's StyleSheet collection.
report.StyleSheet.AddRange(New XRControlStyle() { oddStyle, evenStyle })
End Sub
' Add styles to report's style sheet
rep.StyleSheet.AddRange(New DevExpress.XtraReports.UI.XRControlStyle() {oddStyle, evenStyle})
End Sub
See Also