[]
        
(Showing Draft Content)

FarPoint.Web.Spread.NamedStyleCollection.Add

Add Method

Add(NamedStyle)

Adds a style (NamedStyle object) to the collection.

Declaration
public virtual int Add(NamedStyle style)
Public Overridable Function Add(style As NamedStyle) As Integer
Parameters
Type Name Description
NamedStyle style

Name of the style to add

Returns
Type Description
int
Exceptions
Type Condition
ArgumentNullException

No style specified or specified style is null

Add(string, string)

Adds a style (NamedStyle object) to the collection as a child of the specified parent.

Declaration
public virtual NamedStyle Add(string name, string parentName)
Public Overridable Function Add(name As String, parentName As String) As NamedStyle
Parameters
Type Name Description
string name

Name of the style to add

string parentName

Parent style of the style to add

Returns
Type Description
NamedStyle