共用方式為


CompositeTransform.Rotation Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the angle, in degrees, of clockwise rotation.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Property Rotation As Double
public double Rotation { get; set; }
<CompositeTransform Rotation="double"/>

Property Value

Type: System.Double
The angle, in degrees, of clockwise rotation. The default is 0.

Remarks

Dependency property identifier field: RotationProperty

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

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.