TX Text Control .NET for Windows Forms

GetClipboardFormats Method

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

Description

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.

Syntax

public ClipboardFormat[] GetClipboardFormats();

Examples

The following example retrieves clipboard formats from the text control.

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