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

Boyanmakta Rectangle 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 değerlerin bit düzeyinde birleşimi.

cellStyle
DataGridViewCellStyle

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

cellsPaintSelectionBackground
Boolean

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

Özel durumlar

Satır denetime DataGridView eklenmedi.

graphics, null değeridir.

-veya- cellStyle, null değeridir.

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.