# TextControl.DropFormats Property

> Gets or sets the formats of data the control can accept when the user drags it onto the control. The property's value can be a bitwise OR combination of the values listed below. The bitwise AND operator can be used to test for a given format.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 15.1
- **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.DropFormats Property
- **402 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/dropformats-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/dropformats-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/dropformats-property/llms-full.txt

---

### Description

Gets or sets the formats of data the control can accept when the user drags it onto the control. The property's value can be a bitwise OR combination of the values listed below. The bitwise AND operator can be used to test for a given format.

### Syntax

```csharp
public DropFormat DropFormats { get; set; }
```

```vbnet
Public Property DropFormats As DropFormat
```

### Members

| Value | Description |
|---|---|
| HTMLFormat | The control accepts HTML Format. |
| Image | The control accepts images (Device dependent or device independent bitmaps, TIFF images or Windows metafiles). |
| PlainText | The control accepts plain text. |
| RichTextFormat | The control accepts Rich Text Format. |

### Examples

The following example uses `TextControl.DropFormats` to configure drop formats as part of the text control workflow. The change is then applied to the active document or user interface.

```csharp
textControl.DropFormats = DropFormat.RichTextFormat;
textControl.Update();
```

```vbnet
textControl.DropFormats = DropFormat.RichTextFormat
textControl.Update()
```

---

## Nearby

- **Previous:** [TextControl.DrawingSized Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/drawingsized-event/llms-full.txt)
- **Next:** [TextControl.EditableRegionCreated Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/editableregioncreated-event/llms-full.txt)
