共用方式為


ScrollViewer.MeasureOverride(Size) 方法

定義

測量 ScrollViewer 項目的內容。

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

不應該超過的上限 Size

傳回

Size

計算而得的 Size 項目所需限制 ScrollViewer

適用於