DataGridCell.MeasureOverride(Size) 方法
定義
判斷所需的 DataGridCell 物件大小。Determines the desired size of the DataGridCell.
protected:
override System::Windows::Size MeasureOverride(System::Windows::Size constraint);
protected override System.Windows.Size MeasureOverride (System.Windows.Size constraint);
override this.MeasureOverride : System.Windows.Size -> System.Windows.Size
Protected Overrides Function MeasureOverride (constraint As Size) As Size
參數
- constraint
- Size
儲存格可以佔用的大小上限。The maximum size that the cell can occupy.
傳回
所需的 DataGridCell 大小。The desired size of the DataGridCell.
備註
MeasureOverride方法會測量儲存格所需的區域和右邊的格線。The MeasureOverride method measures the area needed for the cell and the gridline on the right.