[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.SectionReport.StyleSheet

StyleSheet Property

StyleSheet

Gets a value representing the collection of formatting styles used to format controls in the report.

Declaration
[Browsable(false)]
public StyleSheet StyleSheet { get; }
Property Value
Type Description
StyleSheet

A StyleSheet object representing a collection of styles.

Remarks

A collection of predefined standard styles.

Examples
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;