# StyleInt

> Style value that can be either an integer or a StyleKeyword.

## Definition

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

```csharp
public struct StyleInt : IStyleValue<int>, IEquatable<StyleInt>
```

## Constructors

| Constructor                                                                                                                                       | Description                                                                                                               |
| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| [StyleInt(System.Int32)](/engine/6000.0/script-reference/unityengine/uielements/styleint/ctor.md#styleint\(int\))                                 | Creates from either an integer or [StyleKeyword](/engine/6000.0/script-reference/unityengine/uielements/stylekeyword.md). |
| [StyleInt(UnityEngine.UIElements.StyleKeyword)](/engine/6000.0/script-reference/unityengine/uielements/styleint/ctor.md#styleint\(stylekeyword\)) | Creates from either an integer or [StyleKeyword](/engine/6000.0/script-reference/unityengine/uielements/stylekeyword.md). |

## Properties

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