ActiveReports 8
Add(String,String) Method
See Also 
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > StyleSheet Class > Add Method : Add(String,String) Method

name
Specifies the name of the new Style object.
nameOfParent
Specifies the parent Style whose properties will be inherited by the new Style.

Glossary Item Box

Adds a new Style object to the collection and sets its parent style to the specified parent Style.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Add( _
   ByVal name As System.String, _
   ByVal nameOfParent As System.String _
) 
C# 
public void Add( 
   System.string name,
   System.string nameOfParent
)

Parameters

name
Specifies the name of the new Style object.
nameOfParent
Specifies the parent Style whose properties will be inherited by the new Style.

Remarks

Styles are cascaded. Any properties not specified in the child Style are inherited from the parent Style.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also