Search code examples
wpfpinvoke

Equivalent to System.Windows.Forms.DataFormats.GetFormat in WPF


Is there an equivalent to the System.Windows.Forms.DataFormats.GetFormat method in Windows Presentation Foundation or will I end up having to invoke the Win32 RegisterClipboardFormat API via platform invoke instead?


Solution

  • A-ha! It's System.Windows.DataFormats.GetDataFormat.