C# 클래스 NClass.AssemblyImport.Controls.DataGridViewImageComboBoxColumnCell

상속: System.Windows.Forms.DataGridViewComboBoxCell
파일 보기 프로젝트 열기: gbaychev/NClass

공개 메소드들

메소드 설명
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