Share via


IXRTextBlock::SetTextAlignment (Compact 2013)

3/28/2014

This method sets a value that indicates the horizontal alignment of text content inside this text block.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetTextAlignment(
    XRTextAlignment TextAlignment
) = 0; 

Parameters

  • TextAlignment
    [in] XRTextAlignment enumerated type that indicates the horizontal alignment of text content inside this text block.

Return Value

Returns an HRESULT that indicates success or failure.

.NET Framework Equivalent

System.Windows.Controls.TextBlock.TextAlignment

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTextBlock
IXRTextBlock::GetTextAlignment