DropFormats Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
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; }Public Property DropFormats As DropFormatMembers
| 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 configured value is checked before the workflow continues.
textControl.DropFormats = DropFormat.RichTextFormat;
Console.WriteLine($"Drop Formats used by Text Control: {textControl.DropFormats}");textControl.DropFormats = DropFormat.RichTextFormat
Console.WriteLine($"Drop Formats used by Text Control: {textControl.DropFormats}")