GridTableStylesCollection::Contains Method (String^)
.NET Framework (current version)
Gets a value indicating whether the GridTableStylesCollection contains the DataGridTableStyle specified by name.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- name
-
Type:
System::String^
The MappingName of the DataGridTableStyle to look for.
Return Value
Type: System::Booleantrue if the specified table style exists in the collection; otherwise, false.
The following code example uses the Contains method to determine if a DataGridTableStyle with the specified MappingName exists in the collection.
.NET Framework
Available since 1.1
Available since 1.1
Show: