GrapeCity MultiRow Windows Forms Documentation
Add Method (NamedCellStyleDictionary)


The name of the CellStyle to add.
The CellStyle instance to use as the special name value to add.
Adds a CellStyle with the provided key and value to the NamedCellStyleDictionary.
Syntax
Public Sub Add( _
   ByVal key As String, _
   ByVal value As CellStyle _
) 
Dim instance As NamedCellStyleDictionary
Dim key As String
Dim value As CellStyle
 
instance.Add(key, value)
public void Add( 
   string key,
   CellStyle value
)

Parameters

key
The name of the CellStyle to add.
value
The CellStyle instance to use as the special name value to add.
Exceptions
ExceptionDescription
System.ArgumentNullException

The value is a null reference (Nothing in Visual Basic).

-or-

The key is a null reference (Nothing in Visual Basic).

System.ArgumentExceptionAn element with the same key already exists in the NamedCellStyleDictionary.
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

Reference

NamedCellStyleDictionary Class
NamedCellStyleDictionary Members

 

 


Copyright © GrapeCity, inc. All rights reserved.