# TextControl.GetClipboardFormats Method

> Returns an array of ClipboardFormat values. These values specify all the data formats which are currently available in the clipboard and which can be pasted into a TextControl document. If there is no data format available, this method returns null.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 15.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > TextControl.GetClipboardFormats Method
- **371 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/getclipboardformats-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/getclipboardformats-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/getclipboardformats-method/llms-full.txt

---

### Description

Returns an array of [ClipboardFormat](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/clipboardformat/enumeration/llms-full.txt) values. These values specify all the data formats which are currently available in the clipboard and which can be pasted into a TextControl document. If there is no data format available, this method returns null.

### Syntax

```csharp
public ClipboardFormat[] GetClipboardFormats();
```

```vbnet
Public Function GetClipboardFormats() As ClipboardFormat()
```

### Examples

The following example retrieves clipboard formats from the text control.

```csharp
ClipboardFormat[] results = textControl.GetClipboardFormats();
foreach (ClipboardFormat clipboardFormat in results)
{
    Console.WriteLine(clipboardFormat);
}
```

```vbnet
Dim results As ClipboardFormat() = textControl.GetClipboardFormats()
For Each clipboardFormat As ClipboardFormat In results
    Console.WriteLine(clipboardFormat)
Next
```

---

## Nearby

- **Previous:** [TextControl.FrameSized Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/framesized-event/llms-full.txt)
- **Next:** [TextControl.GetPages Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/getpages-property/llms-full.txt)
