Wisej.Web.DataGridViewCellStyle
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Represents the formatting and style information applied to individual cells within a DataGridView control.
Initializes a new instance of the DataGridViewCellStyle class using default property values.
DataGridViewContentAlignment: Returns or sets a value indicating the position of the cell content within a DataGridViewCell cell. (Default: NotSet
)
Color: Returns or sets the background color of a DataGridViewCell cell.
Image: Returns or sets the background image displayed in a DataGridViewCell cell. (Default: null
)
ContentAlignment: Returns or sets the background image alignment as defined in the ContentAlignment enumeration. (Default: MiddleLeft
)
ImageLayout: Returns or sets the background image layout as defined in the ImageLayout enumeration. (Default: None
)
String: Returns or sets the theme name or URL for the background image displayed in a DataGridViewCell cell. (Default: null
)
Int32: Returns or sets the number of columns that this cell can use to render its content. (Default: 1
)
Throws:
ArgumentOutOfRangeException The value is lower than 1 or greater than 100.
String: Returns or sets additional CSS class names to add to the DataGridViewCell.
String: Returns or sets the custom CSS styles to apply to the DataGridViewCell.
You can use any CSS style string.
Object: Returns or sets the value saved to the data source when the user enters a null value into a cell.
Font: Returns or sets the font applied to the textual content of a DataGridViewCell cell.
Color: Returns or sets the foreground color of a DataGridViewCell cell.
String: Returns or sets the format string applied to the textual content of a DataGridView cell.
IFormatProvider: Returns or sets the object used to provide culture-specific formatting of DataGridView cell values.
Boolean: Returns a value indicating whether the DataSourceNullValue property has been set.
Boolean: Returns a value that indicates whether the FormatProvider property has been set.
Boolean: Returns a value indicating whether the NullValue property has been set.
Object: Returns or sets the DataGridView cell display value corresponding to a cell value of Value or null.
Padding: Returns or sets the space between the edge of a DataGridViewCell and its content.
Int32: Returns or sets the number of rows that this cell can use to render its content. (Default: 1
)
Throws:
ArgumentOutOfRangeException The value is lower than 1 or greater than 100.
DataGridViewCellStyleScopes: Returns the scope (the type of object) that owns the cell style.
Object: Returns or sets an object that contains additional data related to the DataGridViewCellStyle.
DataGridViewTriState: Returns or sets whether textual content in a DataGridViewCell cell is wrapped to subsequent lines or truncated when it is too long to fit on a single line.
Creates an exact copy of this DataGridViewCellStyle.
Returns: DataGridViewCellStyle. A DataGridViewCellStyle that represents an exact copy of this cell style.
Releases all resources used by the DataGridViewCellStyle.