List<String> dataFormats = typeof(DataFormats).GetFields(BindingFlags.Public | BindingFlags.Static)
.Select(f => f.Name)
.ToList();
this should give you all the fields from the DataFormats
List<String> dataFormatsInClipboard =
dataFormats.Where( df => Clipboard.ContainsData(df) )
.ToList();
will only give you those that match the buffer.
source
share