DataGridViewRow.DrawFocus Yöntem

Tanım

Belirtilen sınırların etrafına bir odak dikdörtgeni çizer.

protected public:
 virtual void DrawFocus(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle bounds, int rowIndex, System::Windows::Forms::DataGridViewElementStates rowState, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, bool cellsPaintSelectionBackground);
protected internal virtual void DrawFocus(System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle bounds, int rowIndex, System.Windows.Forms.DataGridViewElementStates rowState, System.Windows.Forms.DataGridViewCellStyle cellStyle, bool cellsPaintSelectionBackground);
abstract member DrawFocus : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * System.Windows.Forms.DataGridViewCellStyle * bool -> unit
override this.DrawFocus : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * System.Windows.Forms.DataGridViewCellStyle * bool -> unit
Protected Friend Overridable Sub DrawFocus (graphics As Graphics, clipBounds As Rectangle, bounds As Rectangle, rowIndex As Integer, rowState As DataGridViewElementStates, cellStyle As DataGridViewCellStyle, cellsPaintSelectionBackground As Boolean)

Parametreler

graphics
Graphics

öğesini Graphics boyamak DataGridViewRowiçin kullanılır.

clipBounds
Rectangle

Rectangle Boyanması gereken alanını DataGridView temsil eden bir.

bounds
Rectangle

Rectangle Boyanmakta olan öğesinin DataGridViewRow sınırlarını içeren bir.

rowIndex
Int32

Boyanmakta olan hücrenin satır dizini.

rowState
DataGridViewElementStates

Satırın DataGridViewElementStates durumunu belirten bit düzeyinde değerler birleşimi.

cellStyle
DataGridViewCellStyle

Odak DataGridViewCellStyle dikdörtgenini boyamak için kullanılır.

cellsPaintSelectionBackground
Boolean

trueözelliğini odak dikdörtgeninin rengi olarak; SelectionBackColorcellStyle özelliğini false odak dikdörtgeninin BackColor rengi olarak kullanmak cellStyle için kullanın.

Özel durumlar

Satır denetime DataGridView eklenmedi.

graphics, null'e eşittir.

-veya-

cellStyle, null'e eşittir.

Açıklamalar

rowIndex parametresi yöntemin temel sınıf uygulamasında DrawFocus kullanılmaz, ancak bu yöntem türetilmiş bir sınıfta geçersiz kılınırken kullanılabilir.

Şunlara uygulanır

Ayrıca bkz.