次の方法で共有


IXRTextBlock::GetLineHeight (Windows Embedded CE 6.0)

1/6/2010

This method retrieves the height of each line of text in this text block.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetLineHeight(
    float *pLineHeight
) = 0;

Parameters

  • pLineHeight
    [out] Pointer to a float value that indicates the height, in pixels, of each line of text in this text block.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

If you set this value by calling IXRTextBlock::SetLineHeight, it does not change the height of the associated text. It changes the height of the line that contains the text. To change the size of the text, call IXRTextBlock::SetFontSize.

The layout of lines in an IXRTextBlock is affected by both the line height and by the line-stacking strategy. The value of pLineHeight affects the layout of a text-block control only when you pass the value XRLineStackingStrategy_BlockLineHeight into IXRTextBlock::SetLineStackingStrategy.

.NET Framework Equivalent

System.Windows.Controls.TextBlock.LineHeight

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRTextBlock
IXRTextBlock::SetLineHeight