# StyleCursor

> Style value that can be either a Cursor or a StyleKeyword.

## Definition

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

```csharp
public struct StyleCursor : IStyleValue<Cursor>, IEquatable<StyleCursor>
```

## Constructors

| Constructor                                                                                                                                                | Description                                                                                                                                                                      |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [StyleCursor(UnityEngine.UIElements.Cursor)](/engine/6000.0/script-reference/unityengine/uielements/stylecursor/ctor.md#stylecursor\(cursor\))             | Creates from either a [Cursor](/engine/6000.0/script-reference/unityengine/cursor.md) or [StyleKeyword](/engine/6000.0/script-reference/unityengine/uielements/stylekeyword.md). |
| [StyleCursor(UnityEngine.UIElements.StyleKeyword)](/engine/6000.0/script-reference/unityengine/uielements/stylecursor/ctor.md#stylecursor\(stylekeyword\)) | Creates from either a [Cursor](/engine/6000.0/script-reference/unityengine/cursor.md) or [StyleKeyword](/engine/6000.0/script-reference/unityengine/uielements/stylekeyword.md). |

## Properties

| Property                                                                                 | Description                                                                |
| ---------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| [keyword](/engine/6000.0/script-reference/unityengine/uielements/stylecursor/keyword.md) | The style keyword.                                                         |
| [value](/engine/6000.0/script-reference/unityengine/uielements/stylecursor/value.md)     | The [Cursor](/engine/6000.0/script-reference/unityengine/cursor.md) value. |
