# 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 document. If there is no data format available, this method returns null.

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

---

### Description

Returns an array of [ClipboardFormat](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/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 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-wpf/reference/txtextcontrol-wpf/textcontrol/framesized-event/llms-full.txt)
- **Next:** [TextControl.GetPages Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/getpages-property/llms-full.txt)
