C# Класс SIL.FieldWorks.Common.Widgets.SilButtonCell

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

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

Метод Описание
GetRectangles ( Rectangle bounds, Rectangle &rcbtn, Rectangle &rcText ) : void

Gets the rectangle for the radio button and the text, given the specified cell bounds.

GetRectangles ( Rectangle bounds, Rectangle &rcbtn, Rectangle &rcText, int rowIndex ) : void

Gets the rectangle for the radio button and the text, given the specified cell bounds.

IsPointOverButton ( Point pt, bool relativeToCell ) : bool

Gets a value indicating whether or not the specified point is over the cell's radio button. The relativeToCell flag is true when the specified point's origin is relative to the upper right corner of the cell. When false, it's assumed the point's origin is relative to the cell's owning grid control.

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

Метод Описание
OnMouseClick ( System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void

OnMouseDown ( System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void

Monitor when the mouse button goes down over the button.

OnMouseLeave ( int rowIndex ) : void

OnMouseMove ( System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void

OnMouseUp ( System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void

Monitor when the user releases the mouse button.

Paint ( Graphics g, Rectangle clipBounds, Rectangle bounds, int rowIndex, DataGridViewElementStates state, object value, object formattedValue, string errorText, System.Windows.Forms.DataGridViewCellStyle style, System.Windows.Forms.DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts parts ) : void

Paint the cell with a radio button and it's text.

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

Метод Описание
DrawButton ( Graphics g, Rectangle rcbtn, int rowIndex ) : void
DrawCellText ( Graphics g, string text, System.Windows.Forms.DataGridViewCellStyle style, Rectangle rcText ) : void

Draws the cell's text.

GetVisualStyleComboButton ( ) : System.Windows.Forms.VisualStyles.VisualStyleElement

Gets the correct visual style combo button given the state of the cell.

GetVisualStylePushButton ( ) : System.Windows.Forms.VisualStyles.VisualStyleElement

Gets the correct visual style push button given the state of the cell.

InternalShowButton ( int rowIndex ) : bool
ManageButtonToolTip ( ) : void

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

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

Gets the rectangle for the radio button and the text, given the specified cell bounds.
public GetRectangles ( Rectangle bounds, Rectangle &rcbtn, Rectangle &rcText ) : void
bounds System.Drawing.Rectangle The rectangle of the entire cell.
rcbtn System.Drawing.Rectangle The returned rectangle for the button.
rcText System.Drawing.Rectangle The returned rectangle for the text.
Результат void

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

Gets the rectangle for the radio button and the text, given the specified cell bounds.
public GetRectangles ( Rectangle bounds, Rectangle &rcbtn, Rectangle &rcText, int rowIndex ) : void
bounds System.Drawing.Rectangle The rectangle of the entire cell.
rcbtn System.Drawing.Rectangle The returned rectangle for the button.
rcText System.Drawing.Rectangle The returned rectangle for the text.
rowIndex int The index of the row.
Результат void

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

Gets a value indicating whether or not the specified point is over the cell's radio button. The relativeToCell flag is true when the specified point's origin is relative to the upper right corner of the cell. When false, it's assumed the point's origin is relative to the cell's owning grid control.
public IsPointOverButton ( Point pt, bool relativeToCell ) : bool
pt Point
relativeToCell bool
Результат bool

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

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

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

Monitor when the mouse button goes down over the button.
protected OnMouseDown ( System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void
e System.Windows.Forms.DataGridViewCellMouseEventArgs
Результат void

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

protected OnMouseLeave ( int rowIndex ) : void
rowIndex int
Результат void

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

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

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

Monitor when the user releases the mouse button.
protected OnMouseUp ( System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void
e System.Windows.Forms.DataGridViewCellMouseEventArgs
Результат void

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

Paint the cell with a radio button and it's text.
protected Paint ( Graphics g, Rectangle clipBounds, Rectangle bounds, int rowIndex, DataGridViewElementStates state, object value, object formattedValue, string errorText, System.Windows.Forms.DataGridViewCellStyle style, System.Windows.Forms.DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts parts ) : void
g System.Drawing.Graphics
clipBounds System.Drawing.Rectangle
bounds System.Drawing.Rectangle
rowIndex int
state DataGridViewElementStates
value object
formattedValue object
errorText string
style System.Windows.Forms.DataGridViewCellStyle
advancedBorderStyle System.Windows.Forms.DataGridViewAdvancedBorderStyle
parts DataGridViewPaintParts
Результат void