次の方法で共有


IXRTextBlock::SetPadding (Compact 2013)

3/28/2014

This method sets a value that indicates the width of padding space between the boundaries of the content area and the content that is displayed by a text block.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetPadding(
    XRThickness *pPadding
) = 0; 

Parameters

  • pPadding
    [in] Pointer to an XRThickness structure that indicates the width of padding space between the boundaries of the content area and the content that is displayed by a text block.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

Padding can be specified as four values that represent left, top, right, and bottom padding independently. Negative values are not supported. For more information, see the XRThickness structure.

If a specified padding thickness exceeds the corresponding area dimension (for example, the sum of the left and right padding widths exceeds the content-area width), the thickness of the padding is proportionately reduced to a value no greater than the relevant content-area dimension.

.NET Framework Equivalent

System.Windows.Controls.TextBlock.Padding

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTextBlock
IXRTextBlock::GetPadding