DataGridViewLinkCell.GetPreferredSize Metoda

Definicja

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

graphics
Graphics

Użyto Graphics do narysowania komórki.

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

Size

Element Size reprezentujący preferowany rozmiar w pikselach komórki.

Dotyczy

Zobacz też