Share via


LinedFlowLayout.ActualLineHeight 屬性

定義

取得行的有效固定高度。

public:
 property double ActualLineHeight { double get(); };
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultActualLineHeight")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultActualLineHeight")]
double ActualLineHeight();
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultActualLineHeight")]
public double ActualLineHeight { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultActualLineHeight")] get; }
var double = linedFlowLayout.actualLineHeight;
Public ReadOnly Property ActualLineHeight As Double

屬性值

Double

double

線條的有效固定高度。

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

備註

如果 LineHeight 屬性設定為預設值 Double.NaN ,行高會根據索引 0 的專案 () UIElement.DesiredSize 所需的大小。 在此情況下,您可以使用 ActualLineHeight 屬性來取得行的有效高度。

LinedFlowLayout 會與 ItemsView.LayoutItemsRepeater.Layout 屬性搭配使用。 當此 LinedFlowLayout 提供的控件尚未載入或尚未參與轉譯 UI 的配置階段時,這個屬性值為 0.0。

適用於