# GH_DocumentIO class

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 sealed class GH_DocumentIO
```

Provides basic IO operations for GH_Documents.

## Constructors

- [GH_DocumentIO](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/ctor.md): (2 overloads) Create a new instance of GH_DocumentIO without an internal document.

## Properties

- [DisableOverwriteProtection](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/disableoverwriteprotection.md): (static) Gets or sets whether the file overwrite protection dialog ought to be shown during risky saves.
- [Document](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/document.md): Gets or sets the internal document.
- [IsDocument](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/isdocument.md): Gets a value indicating whether or not this instance of GH_DocumentIO contains an internal document.
- [LocalClipboardContent](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/localclipboardcontent.md): Gets the contents of the local clipboard.

## Methods

- [ClearClipboard](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/clearclipboard.md): Clear the Clipboard Text content. This function wipes both the Text and UnicodeText clipboard fields.
- [Copy](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/copy.md): (3 overloads) Copy the internal document into the clipboard.
- [GetDocumentIcon](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/getdocumenticon.md): (static) Try and extract the icon image of a document. Not all gh/ghx files contain an icon so this function may return null. The document itself is not loaded and rendered, so the icon really has to be part of the file already.
- [GetDocumentThumbnail](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/getdocumentthumbnail.md): (static) Try and extract the preview image of a document. Not all gh/ghx files contain a thumbnail so this function may return null. The document itself is not loaded and rendered, so the thumbnail really has to be part of the file already.
- [Open](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/open.md): (2 overloads) Perform a default Open operation and store the result as the internal document.
- [OpenDocumentDialog](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/opendocumentdialog.md): Display the Open GH/GHX dialog.
- [Paste](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/paste.md): Deserialize a Grasshopper document from the clipboard. On success, the internal document of this GH_DocumentIO instance will be set.
- [Save](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/save.md): Perform a default Save operation on the internal document.
- [SaveAs](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/saveas.md): Perform a default Save As operation on the internal document.
- [SaveAsCopyDocumentDialog](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/saveascopydocumentdialog.md): Display the Save As Copy GH/GHX dialog.
- [SaveAsDocumentDialog](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/saveasdocumentdialog.md): Display the Save As GH/GHX dialog.
- [SaveBackup](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/savebackup.md): Save a time-stamped copy of the current file.
- [SaveDocumentDialog](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/savedocumentdialog.md): Display the Save GH/GHX dialog.
- [SaveQuiet](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/savequiet.md): Quietly save a file to a given location.
- [ShowOverwriteDialog](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/showoverwritedialog.md): (2 overloads, static)
- [SubsidiaryDocumentSavePrompt](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentio/subsidiarydocumentsaveprompt.md): (2 overloads, static) Display a 'stuff has changed do you want to save' message box with Yes/No/Cancel options.
