C# Class System.Windows.Forms.DataGridViewTextBoxCell

Inheritance: System.Windows.Forms.DataGridViewCell
Show file Open project: kumpera/mono Class Usage Examples

Private Properties

Property Type Description
CreateEditingControl void
DetachEditingControl void

Public Methods

Method Description
Clone ( ) : object
DataGridViewTextBoxCell ( ) : System
InitializeEditingControl ( int rowIndex, object initialFormattedValue, System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle ) : void
KeyEntersEditMode ( KeyEventArgs e ) : bool
PositionEditingControl ( bool setLocation, bool setSize, Rectangle cellBounds, Rectangle cellClip, System.Windows.Forms.DataGridViewCellStyle cellStyle, bool singleVerticalBorderAdded, bool singleHorizontalBorderAdded, bool isFirstDisplayedColumn, bool isFirstDisplayedRow ) : void
ToString ( ) : string

Protected Methods

Method Description
GetContentBounds ( Graphics graphics, System.Windows.Forms.DataGridViewCellStyle cellStyle, int rowIndex ) : Rectangle
GetErrorIconBounds ( Graphics graphics, System.Windows.Forms.DataGridViewCellStyle cellStyle, int rowIndex ) : Rectangle
GetPreferredSize ( Graphics graphics, System.Windows.Forms.DataGridViewCellStyle cellStyle, int rowIndex, Size constraintSize ) : Size
OnEnter ( int rowIndex, bool throughMouseClick ) : void
OnLeave ( int rowIndex, bool throughMouseClick ) : void
OnMouseClick ( System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void
Paint ( Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, int rowIndex, DataGridViewElementStates cellState, object value, object formattedValue, string errorText, System.Windows.Forms.DataGridViewCellStyle cellStyle, System.Windows.Forms.DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts ) : void

Private Methods

Method Description
CreateEditingControl ( ) : void
DetachEditingControl ( ) : void

Method Details

Clone() public method

public Clone ( ) : object
return object

DataGridViewTextBoxCell() public method

public DataGridViewTextBoxCell ( ) : System
return System

GetContentBounds() protected method

protected GetContentBounds ( Graphics graphics, System.Windows.Forms.DataGridViewCellStyle cellStyle, int rowIndex ) : Rectangle
graphics System.Drawing.Graphics
cellStyle System.Windows.Forms.DataGridViewCellStyle
rowIndex int
return System.Drawing.Rectangle

GetErrorIconBounds() protected method

protected GetErrorIconBounds ( Graphics graphics, System.Windows.Forms.DataGridViewCellStyle cellStyle, int rowIndex ) : Rectangle
graphics System.Drawing.Graphics
cellStyle System.Windows.Forms.DataGridViewCellStyle
rowIndex int
return System.Drawing.Rectangle

GetPreferredSize() protected method

protected GetPreferredSize ( Graphics graphics, System.Windows.Forms.DataGridViewCellStyle cellStyle, int rowIndex, Size constraintSize ) : Size
graphics System.Drawing.Graphics
cellStyle System.Windows.Forms.DataGridViewCellStyle
rowIndex int
constraintSize System.Drawing.Size
return System.Drawing.Size

InitializeEditingControl() public method

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

KeyEntersEditMode() public method

public KeyEntersEditMode ( KeyEventArgs e ) : bool
e KeyEventArgs
return bool

OnEnter() protected method

protected OnEnter ( int rowIndex, bool throughMouseClick ) : void
rowIndex int
throughMouseClick bool
return void

OnLeave() protected method

protected OnLeave ( int rowIndex, bool throughMouseClick ) : void
rowIndex int
throughMouseClick bool
return void

OnMouseClick() protected method

protected OnMouseClick ( System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void
e System.Windows.Forms.DataGridViewCellMouseEventArgs
return void

Paint() protected method

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

PositionEditingControl() public method

public PositionEditingControl ( bool setLocation, bool setSize, Rectangle cellBounds, Rectangle cellClip, System.Windows.Forms.DataGridViewCellStyle cellStyle, bool singleVerticalBorderAdded, bool singleHorizontalBorderAdded, bool isFirstDisplayedColumn, bool isFirstDisplayedRow ) : void
setLocation bool
setSize bool
cellBounds System.Drawing.Rectangle
cellClip System.Drawing.Rectangle
cellStyle System.Windows.Forms.DataGridViewCellStyle
singleVerticalBorderAdded bool
singleHorizontalBorderAdded bool
isFirstDisplayedColumn bool
isFirstDisplayedRow bool
return void

ToString() public method

public ToString ( ) : string
return string