Spread WPF 17
GrapeCity.Windows.SpreadSheet.Data Namespace / StyleInfoCollection Class / Add Method / Add(String,String) Method
The name of the style to add.
The parent style to add.


In This Topic
    Add(String,String) Method
    In This Topic
    Adds a style (StyleInfo object) to the collection as a child of the specified parent.
    Syntax
    'Declaration
     
    Public Overloads Overridable Function Add( _
       ByVal name As String, _
       ByVal parentName As String _
    ) As StyleInfo
    'Usage
     
    Dim instance As StyleInfoCollection
    Dim name As String
    Dim parentName As String
    Dim value As StyleInfo
     
    value = instance.Add(name, parentName)
    public virtual StyleInfo Add( 
       string name,
       string parentName
    )

    Parameters

    name
    The name of the style to add.
    parentName
    The parent style to add.

    Return Value

    The cell style.
    See Also