# GH_DocumentContext enum

Namespace: [Grasshopper.Kernel](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.kernel.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public enum GH_DocumentContext
```

Enumerates all possible (de)activation contexts for documents.

## Values

| Name | Value | Description |
| --- | --- | --- |
| Unknown | 0 | Specifies unknown context. This should never be used. |
| None | 1 | Specifies unset state. This is only used for documents that have never been in a context. |
| Open | 2 | Indicates the document was created anew from a file. |
| Close | 3 | Indicates the document has been unloaded from memory. |
| Loaded | 4 | Indicates the document has been loaded into the Canvas. |
| Unloaded | 5 | Indicates the document has been unloaded from the Canvas. |
| Lock | 6 | Indicates the document has been locked. This is only possible for nested documents. |
| Unlock | 7 | Indicates the document has been unlocked. This is only possible for nested documents. |
