C# Класс System.Windows.Forms.DataGridViewTextBoxCell

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

Private Properties

Свойство Тип Описание
CreateEditingControl void
DetachEditingControl void

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

Метод Описание
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

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

Метод Описание
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

Приватные методы

Метод Описание
CreateEditingControl ( ) : void
DetachEditingControl ( ) : void

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

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

public Clone ( ) : object
Результат object

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

public DataGridViewTextBoxCell ( ) : System
Результат System

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

protected GetContentBounds ( Graphics graphics, System.Windows.Forms.DataGridViewCellStyle cellStyle, int rowIndex ) : Rectangle
graphics System.Drawing.Graphics
cellStyle System.Windows.Forms.DataGridViewCellStyle
rowIndex int
Результат System.Drawing.Rectangle

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

protected GetErrorIconBounds ( Graphics graphics, System.Windows.Forms.DataGridViewCellStyle cellStyle, int rowIndex ) : Rectangle
graphics System.Drawing.Graphics
cellStyle System.Windows.Forms.DataGridViewCellStyle
rowIndex int
Результат System.Drawing.Rectangle

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

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
Результат System.Drawing.Size

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

public InitializeEditingControl ( int rowIndex, object initialFormattedValue, System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle ) : void
rowIndex int
initialFormattedValue object
dataGridViewCellStyle System.Windows.Forms.DataGridViewCellStyle
Результат void

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

public KeyEntersEditMode ( KeyEventArgs e ) : bool
e KeyEventArgs
Результат bool

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

protected OnEnter ( int rowIndex, bool throughMouseClick ) : void
rowIndex int
throughMouseClick bool
Результат void

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

protected OnLeave ( int rowIndex, bool throughMouseClick ) : void
rowIndex int
throughMouseClick bool
Результат void

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

protected OnMouseClick ( System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void
e System.Windows.Forms.DataGridViewCellMouseEventArgs
Результат void

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

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
Результат void

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

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
Результат void

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

public ToString ( ) : string
Результат string