# customStyle

> The custom style properties accessor of a VisualElement (Read Only).

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public ICustomStyle customStyle { get; }
```

### Remarks

To get the custom styles properties of an element, call the [ICustomStyle.TryGetValue](/engine/6000.7/script-reference/unityengine/uielements/icustomstyle/trygetvalue.md) method to query the returned object of this property.

For more information about how to use this property, refer to the [Get custom styles](/engine/6000.7/manual/uitoolkits/uielements/uie-uss/variables/uie-get-custom-styles.md) manual page.

For a list of all the supported style properties, refer to the [USS properties reference](/engine/6000.7/manual/uitoolkits/uielements/uie-uss/properties/reference.md) manual page.

Additional Resources: [VisualElement.style](/engine/6000.7/script-reference/unityengine/uielements/visualelement/style.md), [VisualElement.resolvedStyle](/engine/6000.7/script-reference/unityengine/uielements/visualelement/resolvedstyle.md)
