HwndHost.MeasureOverride(Size) HwndHost.MeasureOverride(Size) HwndHost.MeasureOverride(Size) HwndHost.MeasureOverride(Size) Method

定義

傳回所代表之視窗的大小HwndHost物件,如要求配置引擎作業。Returns the size of the window represented by the HwndHost object, as requested by layout engine operations.

protected:
 override System::Windows::Size MeasureOverride(System::Windows::Size constraint);
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
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

大小HwndHost物件。The size of the HwndHost object.

傳回

大小HwndHost物件。The size of the HwndHost object.

備註

重要

這個類型或成員不可以使用網際網路安全性區域中。This type or member is not available in the Internet security zone.

給繼承者的注意事項

Win32Win32,視窗應該是在建立時的視窗配置所要求的大小。In Win32Win32, a window is expected to be the size requested by layout at the time the window is created. 在衍生的類別應該覆寫這個方法,只有當他們有必要的視窗大小有關的其他資訊。Derived classes should override this method only if they have additional information regarding required window size.

特定的實作已覆寫FrameworkElement基礎視窗控制代碼上的大小限制,並在一或多個維度中的零值視為非條件約束的虛擬成員。The specific implementation here is already an override of the FrameworkElement virtual member, which bases size constraints on the window handle and treats a zero value in one or more dimensions as a non-constraint. WindowsFormsHost類別也會覆寫MeasureOverride(Size)太大時,會導致在表單的剪輯的實作。The WindowsFormsHost class also overrides a MeasureOverride(Size) implementation that will result in a clip of the form if it is too large.

安全性

SecurityPermission
若要調整版面配置 (由配置引擎採取所裝載的區域)。in order to adjust the layout (by having the layout engine act upon the hosted region). 相關聯的列舉型別: UnmanagedCodeAssociated enumeration: UnmanagedCode

適用於