DataGridViewLinkCell.GetPreferredSize Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Oblicza preferowany rozmiar w pikselach komórki.
protected:
override System::Drawing::Size GetPreferredSize(System::Drawing::Graphics ^ graphics, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, int rowIndex, System::Drawing::Size constraintSize);
protected override System.Drawing.Size GetPreferredSize (System.Drawing.Graphics graphics, System.Windows.Forms.DataGridViewCellStyle cellStyle, int rowIndex, System.Drawing.Size constraintSize);
override this.GetPreferredSize : System.Drawing.Graphics * System.Windows.Forms.DataGridViewCellStyle * int * System.Drawing.Size -> System.Drawing.Size
Protected Overrides Function GetPreferredSize (graphics As Graphics, cellStyle As DataGridViewCellStyle, rowIndex As Integer, constraintSize As Size) As Size
Parametry
- cellStyle
- DataGridViewCellStyle
Element DataGridViewCellStyle reprezentujący styl komórki.
- rowIndex
- Int32
Zero oparty na indeksie wierszy komórki.
- constraintSize
- Size
Maksymalny dozwolony rozmiar komórki.
Zwraca
Element Size reprezentujący preferowany rozmiar w pikselach komórki.