Compartilhar via


IXRTranslateTransform::SetX (Compact 2013)

3/28/2014

This method sets the distance to translate along the x-axis.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetX(
    float X
) = 0;

Parameters

  • X
    [in] A float value that indicates the distance to translate (move) an object along the x-axis, in pixels.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

Negative values for X move an object to the left; positive values for X move an object to the right.

.NET Framework Equivalent

System.Windows.Media.TranslateTransform.X

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTranslateTransform
IXRTranslateTransform::GetX