FrameworkElement.ArrangeOverride(Size) FrameworkElement.ArrangeOverride(Size) FrameworkElement.ArrangeOverride(Size) FrameworkElement.ArrangeOverride(Size) Method

定義

在衍生類別中覆寫時,放置子項目,並且判斷 FrameworkElement 衍生類別的大小。When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.

protected:
 virtual System::Windows::Size ArrangeOverride(System::Windows::Size finalSize);
protected virtual System.Windows.Size ArrangeOverride (System.Windows.Size finalSize);
abstract member ArrangeOverride : System.Windows.Size -> System.Windows.Size
override this.ArrangeOverride : System.Windows.Size -> System.Windows.Size
Protected Overridable Function ArrangeOverride (finalSize As Size) As Size

參數

finalSize
Size Size Size Size

父系內這個項目應該用來排列本身和其子系的最終區域。The final area within the parent that this element should use to arrange itself and its children.

傳回

使用的實際大小。The actual size used.

給繼承者的注意事項

想要自訂版面配置處理的排列傳遞的控制項作者應該覆寫這個方法。Control authors who want to customize the arrange pass of layout processing should override this method. 實作模式應該呼叫Arrange(Rect)的每個可見的子元素和傳遞最終想要為每個子項目的大小finalRect參數。The implementation pattern should call Arrange(Rect) on each visible child element, and pass the final desired size for each child element as the finalRect parameter. 父項目應該呼叫Arrange(Rect)上每個子系,否則為子項目將無法呈現。Parent elements should call Arrange(Rect) on each child, otherwise the child elements will not be rendered.

許多衍生的類別會提供這個方法的實作。Many derived classes offer implementations of this method. 重要的方法包括: ArrangeOverride(Size)ArrangeOverride(Size)ArrangeOverride(Size)Prominent ones include: ArrangeOverride(Size), ArrangeOverride(Size) and ArrangeOverride(Size).

適用於

另請參閱