Share via


IXRTextBlock::GetTextTrimming (Compact 2013)

3/28/2014

This method retrieves the text trimming behavior to employ when content overflows the content area.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetTextTrimming(
    __out XRTextTrimming* pTextTrimming
) = 0;

Parameters

  • pTextTrimming
    [out] Pointer to an XRTextTrimming enumerated value that specifies the text trimming behavior to employ. The default is XRTextTrimming_None.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The value in pTextTrimming indicates how text is truncated inside an IXRTextBlock object. The XRTextTrimming enumeration defines two values: XRTextTrimming_None, which applies no trimming, and XRTextTrimming_WordEllipsi, which trims the text at the end of the first full word closest to the trimming edge and draws an ellipsis (...) in place of remaining text.

.NET Framework Equivalent

System.Windows.Controls.TextBlock.TextTrimming

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTextBlock
IXRTextBlock::SetTextTrimming