TextBlock.ArrangeOverride(Size) 方法

定义

定位子元素并确定 TextBlock 的大小。Positions child elements and determines a size for the TextBlock.

protected:
 override System::Windows::Size ArrangeOverride(System::Windows::Size arrangeSize);
protected override sealed System.Windows.Size ArrangeOverride (System.Windows.Size arrangeSize);
override this.ArrangeOverride : System.Windows.Size -> System.Windows.Size
Protected Overrides NotOverridable Function ArrangeOverride (arrangeSize As Size) As Size

参数

arrangeSize
Size

父承载元素内的 SizeTextBlock 将使用它来排列自身及其子元素。A Size within the hosting parent element that the TextBlock should use to arrange itself and its child elements. 大小约束可能会影响所请求的此大小。Sizing constraints may affect this requested size.

返回

用于排列元素的实际 SizeThe actual Size used to arrange the element.

注解

此方法重写 FrameworkElement.ArrangeOverrideThis method overrides FrameworkElement.ArrangeOverride.

适用于