C# Класс NClass.AssemblyImport.Controls.DataGridViewImageComboBoxColumnCell

Наследование: System.Windows.Forms.DataGridViewComboBoxCell
Показать файл Открыть проект

Открытые методы

Метод Описание
DataGridViewImageComboBoxColumnCell ( ) : System

Initializes a new instance of DataGridViewImageComboBoxColumnCell.

InitializeEditingControl ( int rowIndex, object initialFormattedValue, System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle ) : void

Attaches and initializes the hosted editing control.

ParseFormattedValue ( object formattedValue, System.Windows.Forms.DataGridViewCellStyle cellStyle, TypeConverter formattedValueTypeConverter, TypeConverter valueTypeConverter ) : object

Gets the parsed value of the cell's formatted value.

Защищенные методы

Метод Описание
GetFormattedValue ( object value, int rowIndex, System.Windows.Forms.DataGridViewCellStyle &cellStyle, TypeConverter valueTypeConverter, TypeConverter formattedValueTypeConverter, DataGridViewDataErrorContexts context ) : object

Gets the formatted value of the cell's data.

Paint ( Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, int rowIndex, DataGridViewElementStates elementState, object value, object formattedValue, string errorText, System.Windows.Forms.DataGridViewCellStyle cellStyle, System.Windows.Forms.DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts ) : void

Paints the current DataGridViewImageComboBoxColumnCell.

Описание методов

DataGridViewImageComboBoxColumnCell() публичный Метод

Initializes a new instance of DataGridViewImageComboBoxColumnCell.
public DataGridViewImageComboBoxColumnCell ( ) : System
Результат System

GetFormattedValue() защищенный Метод

Gets the formatted value of the cell's data.
Formatting failed and either there is no handler for the event of the control or the handler set the property to true. The exception object can typically be cast to type for type conversion errors or to type if cannot be found in the or the collection.
protected GetFormattedValue ( object value, int rowIndex, System.Windows.Forms.DataGridViewCellStyle &cellStyle, TypeConverter valueTypeConverter, TypeConverter formattedValueTypeConverter, DataGridViewDataErrorContexts context ) : object
value object The value to be formatted.
rowIndex int The index of the cell's parent row.
cellStyle System.Windows.Forms.DataGridViewCellStyle The in effect for the cell.
valueTypeConverter System.ComponentModel.TypeConverter A associated with the value type that provides custom conversion to the formatted value type, or null if no such custom conversion is needed.
formattedValueTypeConverter System.ComponentModel.TypeConverter A associated with the formatted value type that provides custom conversion from the value type, or null if no such custom conversion is needed.
context DataGridViewDataErrorContexts A bitwise combination of values describing the context in which the formatted value is needed.
Результат object

InitializeEditingControl() публичный Метод

Attaches and initializes the hosted editing control.
public InitializeEditingControl ( int rowIndex, object initialFormattedValue, System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle ) : void
rowIndex int The index of the cell's parent row.
initialFormattedValue object The initial value to be displayed in the control.
dataGridViewCellStyle System.Windows.Forms.DataGridViewCellStyle A that determines the appearance of the hosted control.
Результат void

Paint() защищенный Метод

Paints the current DataGridViewImageComboBoxColumnCell.
protected Paint ( Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, int rowIndex, DataGridViewElementStates elementState, object value, object formattedValue, string errorText, System.Windows.Forms.DataGridViewCellStyle cellStyle, System.Windows.Forms.DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts ) : void
graphics System.Drawing.Graphics The used to paint the cell.
clipBounds System.Drawing.Rectangle A that represents the area of the that needs to be repainted.
cellBounds System.Drawing.Rectangle A that contains the bounds of the cell that is being painted.
rowIndex int The row index of the cell that is being painted.
elementState DataGridViewElementStates A bitwise combination of values that specifies the state of the cell.
value object The data of the cell that is being painted.
formattedValue object The formatted data of the cell that is being painted.
errorText string An error message that is associated with the cell.
cellStyle System.Windows.Forms.DataGridViewCellStyle A that contains formatting and style information about the cell.
advancedBorderStyle System.Windows.Forms.DataGridViewAdvancedBorderStyle A that contains border styles for the cell that is being painted.
paintParts DataGridViewPaintParts A bitwise combination of the values that specifies which parts of the cell need to be painted.
Результат void

ParseFormattedValue() публичный Метод

Gets the parsed value of the cell's formatted value.
public ParseFormattedValue ( object formattedValue, System.Windows.Forms.DataGridViewCellStyle cellStyle, TypeConverter formattedValueTypeConverter, TypeConverter valueTypeConverter ) : object
formattedValue object The display value of the cell.
cellStyle System.Windows.Forms.DataGridViewCellStyle The in effect for the cell.
formattedValueTypeConverter System.ComponentModel.TypeConverter A for the display value type, or null to use the default converter.
valueTypeConverter System.ComponentModel.TypeConverter A for the cell value type, or null to use the default converter.
Результат object