DataGridViewRow.DrawFocus Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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.
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.