Share via


IXRTextBlock::SetTextWrapping (Windows Embedded CE 6.0)

1/6/2010

This method sets how this text block wraps its text.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetTextWrapping(
    XRTextWrapping TextWrapping
) = 0; 

Parameters

  • TextWrapping
    [in] XRTextWrapping enumerated type that indicates how this text block wraps its text.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The value in TextWrapping 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
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRTextBlock
IXRTextBlock::GetTextWrapping