GetClipboardFormats Method
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
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 document. If there is no data format available, this method returns null.
Syntax
public ClipboardFormat[] GetClipboardFormats();Public Function GetClipboardFormats() As ClipboardFormat()Examples
The following example retrieves clipboard formats from the text control.
ClipboardFormat[] results = textControl.GetClipboardFormats();
foreach (ClipboardFormat clipboardFormat in results)
{
Console.WriteLine(clipboardFormat);
}Dim results As ClipboardFormat() = textControl.GetClipboardFormats()
For Each clipboardFormat As ClipboardFormat In results
Console.WriteLine(clipboardFormat)
Next