# GrapeCity.ActiveReports.SectionReport.StyleSheet

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_SectionReport_StyleSheet_" data-uid="GrapeCity.ActiveReports.SectionReport.StyleSheet*">StyleSheet Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_SectionReport_StyleSheet_" data-uid="GrapeCity.ActiveReports.SectionReport.StyleSheet*"></a>
<h4 id="GrapeCity_ActiveReports_SectionReport_StyleSheet" data-uid="GrapeCity.ActiveReports.SectionReport.StyleSheet">StyleSheet</h4>
<div class="markdown level1 summary"><p>Gets a value representing the collection of formatting styles used to format controls in the report.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public StyleSheet StyleSheet { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.StyleSheet.html">StyleSheet</a></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.SectionReport.StyleSheet.html#GrapeCity_ActiveReports_SectionReport_StyleSheet">StyleSheet</a> object representing a collection of styles.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_SectionReport_StyleSheet_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>A collection of predefined standard styles.</p>
</div>
<h5 id="GrapeCity_ActiveReports_SectionReport_StyleSheet_examples">Examples</h5>
<pre><code class="lang-csharp">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;</code></pre>

</div>
