[]
Gets a value representing the collection of formatting styles used to format controls in the report.
[Browsable(false)]
public StyleSheet StyleSheet { get; }
Type | Description |
---|---|
StyleSheet | A StyleSheet object representing a collection of styles. |
A collection of predefined standard styles.
var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.LoadLayout(reportFilePath);
sectionReport.Document.Printer.PrinterName = String.Empty;
sectionReport.StyleSheet.Add("MyStyle");
sectionReport.StyleSheet["MyStyle"].Alignment = TextAlignment.Center;
sectionReport.StyleSheet["MyStyle"].BackColor = System.Drawing.Color.White;
sectionReport.StyleSheet["MyStyle"].FontBold = true;
sectionReport.StyleSheet["MyStyle"].FontItalic = false;
sectionReport.StyleSheet["MyStyle"].FontName = "Arial";
sectionReport.StyleSheet["MyStyle"].FontStrikeThrough = false;
sectionReport.StyleSheet["MyStyle"].FontUnderline = false;
sectionReport.StyleSheet["MyStyle"].ForeColor = System.Drawing.Color.YellowGreen;