# CustomStyleProperty<T>

> Define a custom style property for an element to be retrieved with CustomStyleResolvedEvent.

## Definition

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

```csharp
public struct CustomStyleProperty<T> : IEquatable<CustomStyleProperty<T>>
```

## Constructors

| Constructor                                                                                                                  | Description                            |
| ---------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- |
| [CustomStyleProperty\`1(System.String)](/engine/6000.0/script-reference/unityengine/uielements/customstyleproperty1/ctor.md) | Creates custom property from a string. |

## Properties

| Property                                                                                    | Description                  |
| ------------------------------------------------------------------------------------------- | ---------------------------- |
| [name](/engine/6000.0/script-reference/unityengine/uielements/customstyleproperty1/name.md) | Name of the custom property. |
