TX Text Control .NET for Windows Forms

DropFormats Property

Property|Introduced in 15.1
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

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

public DropFormat DropFormats { get; set; }

Members

ValueDescription
HTMLFormatThe control accepts HTML Format.
ImageThe control accepts images (Device dependent or device independent bitmaps, TIFF images or Windows metafiles).
PlainTextThe control accepts plain text.
RichTextFormatThe 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.

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