System.Windows.Forms.DataGridViewCellStyle Members

The members of System.Windows.Forms.DataGridViewCellStyle are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Windows.Forms.DataGridViewCellStyle class using default property values.

Initializes a new instance of the System.Windows.Forms.DataGridViewCellStyle class using the property values of the specified System.Windows.Forms.DataGridViewCellStyle.

Public Properties

AlignmentDataGridViewContentAlignment.

Gets or sets a value indicating the position of the cell content within a System.Windows.Forms.DataGridView cell.

BackColorSystem.Drawing.Color.

Gets or sets the background color of a System.Windows.Forms.DataGridView cell.

DataSourceNullValueobject.

Gets or sets the value saved to the data source when the user enters a null value into a cell.

FontSystem.Drawing.Font.

Gets or sets the font applied to the textual content of a System.Windows.Forms.DataGridView cell.

ForeColorSystem.Drawing.Color.

Gets or sets the foreground color of a System.Windows.Forms.DataGridView cell.

Formatstring.

Gets or sets the format string applied to the textual content of a System.Windows.Forms.DataGridView cell.

FormatProviderIFormatProvider.

Gets or sets the object used to provide culture-specific formatting of System.Windows.Forms.DataGridView cell values.

[read-only]
IsDataSourceNullValueDefaultbool.

Gets a value indicating whether the DataGridViewCellStyle.DataSourceNullValue property has been set.

[read-only]
IsFormatProviderDefaultbool.

Gets a value that indicates whether the DataGridViewCellStyle.FormatProvider property has been set.

[read-only]
IsNullValueDefaultbool.

Gets a value indicating whether the DataGridViewCellStyle.NullValue property has been set.

NullValueobject.

Gets or sets the System.Windows.Forms.DataGridView cell display value corresponding to a cell value of DBNull.Value or null.

PaddingPadding.

Gets or sets the space between the edge of a System.Windows.Forms.DataGridViewCell and its content.

SelectionBackColorSystem.Drawing.Color.

Gets or sets the background color used by a System.Windows.Forms.DataGridView cell when it is selected.

SelectionForeColorSystem.Drawing.Color.

Gets or sets the foreground color used by a System.Windows.Forms.DataGridView cell when it is selected.

Tagobject.

Gets or sets an object that contains additional data related to the System.Windows.Forms.DataGridViewCellStyle.

WrapModeDataGridViewTriState.

Gets or sets a value indicating whether textual content in a System.Windows.Forms.DataGridView cell is wrapped to subsequent lines or truncated when it is too long to fit on a single line.

Public Methods

ApplyStyle(DataGridViewCellStyle)

Applies the specified System.Windows.Forms.DataGridViewCellStyle to the current System.Windows.Forms.DataGridViewCellStyle.

Clone() : DataGridViewCellStyle

Creates an exact copy of this System.Windows.Forms.DataGridViewCellStyle.

override
Equals(object) : bool

Returns a value indicating whether this instance is equivalent to the specified object.

override
GetHashCode() : int
Documentation for this section has not yet been entered.
override
ToString() : string

Returns a string indicating the current property settings of the System.Windows.Forms.DataGridViewCellStyle.

Explicitly Implemented Interface Members