# StyleRotate

> Represents a style value that can be either a Rotate or a StyleKeyword.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.UIElements](/engine/6000.3/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule
* **Implements:** [IStyleValue\<Rotate>](/engine/6000.3/script-reference/unityengine/uielements/istylevalue1.md), [IEquatable\<StyleRotate>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct StyleRotate : IStyleValue<Rotate>, IEquatable<StyleRotate>
```

## Constructors

| Constructor                                                                                                                                                | Description                                                                                                          |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| [StyleRotate(UnityEngine.Quaternion)](/engine/6000.3/script-reference/unityengine/uielements/stylerotate/ctor.md#stylerotate\(quaternion\))                | Creates a StyleRotate from a [Quaternion](/engine/6000.3/script-reference/unityengine/quaternion.md).                |
| [StyleRotate(UnityEngine.UIElements.Rotate)](/engine/6000.3/script-reference/unityengine/uielements/stylerotate/ctor.md#stylerotate\(rotate\))             | Creates a StyleRotate from a [Rotate](/engine/6000.3/script-reference/unityengine/uielements/rotate.md).             |
| [StyleRotate(UnityEngine.UIElements.StyleKeyword)](/engine/6000.3/script-reference/unityengine/uielements/stylerotate/ctor.md#stylerotate\(stylekeyword\)) | Creates a StyleRotate from a [StyleKeyword](/engine/6000.3/script-reference/unityengine/uielements/stylekeyword.md). |

## Properties

| Property                                                                                 | Description                                                                           |
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| [keyword](/engine/6000.3/script-reference/unityengine/uielements/stylerotate/keyword.md) | The style keyword.                                                                    |
| [value](/engine/6000.3/script-reference/unityengine/uielements/stylerotate/value.md)     | The [Rotate](/engine/6000.3/script-reference/unityengine/uielements/rotate.md) value. |
