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).

適用於

另請參閱