DataGridViewCellStyle Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the DataGridViewCellStyle class.
Overloads
DataGridViewCellStyle() |
Initializes a new instance of the DataGridViewCellStyle class using default property values. |
DataGridViewCellStyle(DataGridViewCellStyle) |
Initializes a new instance of the DataGridViewCellStyle class using the property values of the specified DataGridViewCellStyle. |
DataGridViewCellStyle()
Initializes a new instance of the DataGridViewCellStyle class using default property values.
public:
DataGridViewCellStyle();
public DataGridViewCellStyle ();
Public Sub New ()
See also
Applies to
DataGridViewCellStyle(DataGridViewCellStyle)
Initializes a new instance of the DataGridViewCellStyle class using the property values of the specified DataGridViewCellStyle.
public:
DataGridViewCellStyle(System::Windows::Forms::DataGridViewCellStyle ^ dataGridViewCellStyle);
public DataGridViewCellStyle (System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle);
new System.Windows.Forms.DataGridViewCellStyle : System.Windows.Forms.DataGridViewCellStyle -> System.Windows.Forms.DataGridViewCellStyle
Public Sub New (dataGridViewCellStyle As DataGridViewCellStyle)
Parameters
- dataGridViewCellStyle
- DataGridViewCellStyle
The DataGridViewCellStyle used as a template to provide initial property values.
Exceptions
dataGridViewCellStyle
is null
.