Version

HasCell(String) Method

Returns true if the cell has already been created for the column identified by the specified key. The column by that key must exist in the associated band's columns collection otherwise an exception will be thrown.
Syntax
'Declaration
 
Public Overloads Function HasCell( _
   ByVal key As String _
) As Boolean
public bool HasCell( 
   string key
)

Parameters

key
A value that uniquely identifies an object in a collection.
Remarks

CellsCollection creates cells lazily for efficiency reasons. It creates cells as they are accessed via the indexer or the GetItem method. HasCell can be used to find out if a cell has already been created for a column. Note that there must be a column with the specified key in the associated band's columns collection otherwise this method will throw an exception. If the intention is to find out if a column with the specified key exists then use the Exists method instead.

Note that for better efficiency you may want to use HasCell overloads that take in column index or a column object as they do not require searching the collection for the matching column key.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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