# contextType

> Describes in which context a VisualElement hierarchy is being run.

## Definition

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

```csharp
ContextType contextType { get; }
```

### Remarks

The context type of a Panel affects how it resolves certain styles and receives specific events. For example, drag-and-drop and command events are only sent to Editor-type Panels.

Additional Resources: [DragAndDropEventBase\<T>](/engine/6000.6/script-reference/unityengine/uielements/draganddropeventbase1.md), [CommandEventBase\<T>](/engine/6000.6/script-reference/unityengine/uielements/commandeventbase1.md)
