1 implementation of GetDataPresent
PresentationCore (1)
System\Windows\dataobject.cs (1)
206
public bool
GetDataPresent
(string format) => GetDataPresent(format, autoConvert: true);
21 references to GetDataPresent
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
Interactive\InteractivePasteCommandHandler.cs (2)
96
var dataHasLineCutCopyTag = data.
GetDataPresent
(ClipboardLineBasedCutCopyTag);
97
var dataHasBoxCutCopyTag = data.
GetDataPresent
(BoxSelectionCutCopyTag);
PresentationCore (4)
System\Windows\DataObjectPastingEventArgs.cs (2)
58
if (!dataObject.
GetDataPresent
(formatToApply))
155
if (!_dataObject.
GetDataPresent
(value))
System\Windows\DragDrop.cs (1)
1413
if (dataObject.
GetDataPresent
(formats[i]))
System\Windows\Ole\DataObjectAdapter.cs (1)
25
public bool GetDataPresent(string format) => DataObject.
GetDataPresent
(format);
PresentationFramework (15)
System\windows\Documents\TextEditorCopyPaste.cs (15)
232
if (This.AcceptsRichContent && dataObject.
GetDataPresent
(DataFormats.XamlPackage))
236
else if (This.AcceptsRichContent && dataObject.
GetDataPresent
(DataFormats.Xaml))
240
else if (This.AcceptsRichContent && dataObject.
GetDataPresent
(DataFormats.Rtf))
244
else if (dataObject.
GetDataPresent
(DataFormats.UnicodeText))
248
else if (dataObject.
GetDataPresent
(DataFormats.Text))
721
if (dataObjectToApply.
GetDataPresent
(DataFormats.Xaml))
725
else if (dataObjectToApply.
GetDataPresent
(DataFormats.Rtf))
729
else if (dataObjectToApply.
GetDataPresent
(DataFormats.UnicodeText))
733
else if (dataObjectToApply.
GetDataPresent
(DataFormats.Text))
753
if (dataObjectToApply.
GetDataPresent
(DataFormats.Rtf))
757
else if (dataObjectToApply.
GetDataPresent
(DataFormats.UnicodeText))
761
else if (dataObjectToApply.
GetDataPresent
(DataFormats.Text))
794
if (dataObjectToApply.
GetDataPresent
(DataFormats.UnicodeText))
798
else if (dataObjectToApply.
GetDataPresent
(DataFormats.Text))
809
if (dataObjectToApply.
GetDataPresent
(DataFormats.Text))