SectionFormat.CssClass Property
Gets or sets the name of the cascading style sheet (CSS) for the object.
Namespace CrystalDecisions.CrystalReports.Engine Assembly CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)
Syntax
'Declaration
Public Overrideable Property CssClass As String
public virtual string CssClass {get; set;}
Remarks
The CSS class is set through the SetCSSClass method.
Example
This example applies the specified CSS style to the specified section of the report.
'Declaration
Private Sub UpdateSectionCSSClass(ByVal myReportDocument As ReportDocument, ByVal sectionName As String, ByVal styleName As String)
Dim mySection As Section = myReportDocument.ReportDefinition.Sections.Item(Name)
If Not mySection Is Nothing Then
mySection.SectionFormat.CssClass = styleName
End If
End Sub
private void UpdateSectionCSSClass(ReportDocument reportDocument, String sectionName, String styleName)
{
Section section = reportDocument.ReportDefinition.Sections[Name];
if (section != null)
{
section.SectionFormat.CssClass = styleName;
}
}
Version Information
Crystal Reports Basic for Visual Studio 2008
Supported since: Crystal Reports for Visual Studio .NET 2002
See Also
Reference
SectionFormat Class
SectionFormat Members
CrystalDecisions.CrystalReports.Engine Namespace