次の方法で共有


IXRCompositeTransform::SetRotation (Compact 2013)

3/28/2014

This method sets the angle, in degrees, of clockwise rotation to apply to an object.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetRotation(
    __in float Rotation
) = 0;

Parameters

  • Rotation
    [in] The float value that specifies the angle, in degrees, of clockwise rotation. The default is 0.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

You can use the IXRCompositeTransform::SetCenterX and IXRCompositeTransform::SetCenterY methods to set the center of rotation for the object. For example, if you wanted a 100×100 square to pivot around its center, you would set the CenterX and CenterY properties to 50.

.NET Framework Equivalent

System.Windows.Media.CompositeTransform.Rotation

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRCompositeTransform