# display

> Defines how an element is displayed in the layout.

## Definition

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

```csharp
StyleEnum<DisplayStyle> display { get; set; }
```

### Remarks

Unlike the visibility property, this property affects the layout of the element. This is a convenient way to hide an element without removing it from the hierarchy (when using the [DisplayStyle.None](/engine/6000.5/script-reference/unityengine/uielements/displaystyle/none.md)).

Elements with a display style of [DisplayStyle.None](/engine/6000.5/script-reference/unityengine/uielements/displaystyle/none.md) are ignored by pointer events and by [IPanel.Pick](/engine/6000.5/script-reference/unityengine/uielements/ipanel/pick.md).
