C# 클래스 SIL.FieldWorks.Common.Widgets.SilButtonCell

상속: System.Windows.Forms.DataGridViewTextBoxCell
파일 보기 프로젝트 열기: sillsdev/FieldWorks

공개 메소드들

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