Partager via


AngleX

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

Gets or sets the x-axis skew angle, which is measured in degrees counterclockwise from the y-axis.

<object AngleX="Double"  .../>
value = object.AngleX
object.AngleX = value

Property Value

Type: Double

The skew angle, which is measured in degrees counterclockwise from the y-axis.

This property is read/write. The default value is 0.

Managed Equivalent

AngleX

Remarks

To skew an object in place, set the CenterX and CenterY properties to the object's center point.

You can offset the local origin point 0,0 for an object on a Canvas by using Canvas.Left and Canvas.Top, but this does not count as a transform. In this case, the object retains its own local origin for transformation purposes.

This property accepts negative values. Positive values are interpreted as counterclockwise skew. Negative values are interpreted as clockwise skew. Values that are less than -360 or greater than 360 will wrap around and be treated as if the mathematical operation mod(360) was applied.

The following illustration shows three examples of a SkewTransform applied to a Rectangle.

SkewTransform examples

Different AngleX, AngleY, and Center values.

Applies To

SkewTransform