Partager via


IXRCompositeTransform::SetTranslateX (Compact 2013)

3/28/2014

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

Syntax

virtual HRESULT STDMETHODCALLTYPE SetTranslateX(
    __in float TranslateX
) = 0;

Parameters

  • TranslateX
    [in] The float value that specifies the distance to translate (move) an object along the x-axis, in pixels. The default is 0.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

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

.NET Framework Equivalent

System.Windows.Media.CompositeTransform.TranslateX

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRCompositeTransform