Export (0) Print
Expand All

DataGridViewCellStyle Members

Represents the formatting and style information applied to individual cells within a DataGridView control.

The following tables list the members exposed by the DataGridViewCellStyle type.

  Name Description
Public method DataGridViewCellStyle Overloaded. Initializes a new instance of the DataGridViewCellStyle class.
Top

  Name Description
Public property Alignment Gets or sets a value indicating the position of the cell content within a DataGridView cell.
Public property BackColor Gets or sets the background color of a DataGridView cell.
Public property DataSourceNullValue Gets or sets the value saved to the data source when the user enters a null value into a cell.
Public property Font Gets or sets the font applied to the textual content of a DataGridView cell.
Public property ForeColor Gets or sets the foreground color of a DataGridView cell.
Public property Format Gets or sets the format string applied to the textual content of a DataGridView cell.
Public property FormatProvider Gets or sets the object used to provide culture-specific formatting of DataGridView cell values.
Public property IsDataSourceNullValueDefault Gets a value indicating whether the DataSourceNullValue property has been set.
Public property IsFormatProviderDefault Gets a value that indicates whether the FormatProvider property has been set.
Public property IsNullValueDefault Gets a value indicating whether the NullValue property has been set.
Public property NullValue Gets or sets the DataGridView cell display value corresponding to a cell value of DBNull.Value or a null reference (Nothing in Visual Basic).
Public property Padding Gets or sets the space between the edge of a DataGridViewCell and its content.
Public property SelectionBackColor Gets or sets the background color used by a DataGridView cell when it is selected.
Public property SelectionForeColor Gets or sets the foreground color used by a DataGridView cell when it is selected.
Public property Tag Gets or sets an object that contains additional data related to the DataGridViewCellStyle.
Public property WrapMode Gets or sets a value indicating whether textual content in a DataGridView cell is wrapped to subsequent lines or truncated when it is too long to fit on a single line.
Top

(see also Protected Methods )
  Name Description
Public method ApplyStyle Applies the specified DataGridViewCellStyle to the current DataGridViewCellStyle.
Public method Clone Creates an exact copy of this DataGridViewCellStyle.
Public method Equals Overloaded. Overridden. Determines whether two DataGridViewCellStyle instances are equal.
Public method GetHashCode Overridden.  
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method ToString Overridden. Returns a string indicating the current property settings of the DataGridViewCellStyle.
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Top

  Name Description
Explicit interface implementation Method System.ICloneable.Clone Creates an exact copy of this DataGridViewCellStyle.
Top

Community Additions

ADD
Show:
© 2015 Microsoft