Поделиться через


IXRTextBlock::GetTextWrapping (Compact 2013)

3/28/2014

This method retrieves how this text block wraps its text.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetTextWrapping(
    XRTextWrapping* pTextWrapping
) = 0;

Parameters

  • pTextWrapping
    [out] Pointer to an XRTextWrapping member that indicates how this text block wraps its text.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The value in pTextWrapping indicates how text wraps inside an IXRTextBlock object. The XRTextWrapping enumeration defines two values: XRTextWrapping_NoWrap and XRTextWrapping_Wrap.

ActualHeight and ActualWidth are read-only properties that report the rendered height and width of this IXRTextBlock object. You can retrieve these values by calling the inherited methods IXRFrameworkElement::GetActualHeight and IXRFrameworkElement::GetActualWidth. These properties can differ from the Height and Width dependency properties of this IXRTextBlock object. When you call IXRTextBlock::SetTextWrapping, it affects the ActualHeight and ActualWidth values of this IXRTextBlock object.

.NET Framework Equivalent

System.Windows.Controls.TextBlock.TextWrapping

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTextBlock
IXRTextBlock::SetTextWrapping