IXRTextBlock::SetTextTrimming (Compact 2013)
3/28/2014
This method sets the text trimming behavior to employ when content overflows the content area.
Syntax
virtual HRESULT STDMETHODCALLTYPE SetTextTrimming(
__in XRTextTrimming TextTrimming
) = 0;
Parameters
- TextTrimming
[in] 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 TextTrimming 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 |