Here are the examples of the csharp api class System.Windows.Forms.DataObject.GetDataPresent(string, bool) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
Project: duality
Source File: ConversionData.cs
Source File: ConversionData.cs
object IDataObject.GetData(string format, bool autoConvert) { bool isCached = this.dataCache.GetDataPresent(format, autoConvert) || this.dataCache.GetWrappedDataPresent(format); if (!isCached) { object obj; if (this.data.GetDataPresent(format, autoConvert)) obj = this.data.GetData(format, autoConvert); else if (this.data.GetWrappedDataPresent(format)) obj = this.data.GetWrappedData(format); else obj = null; if (obj != null) this.dataCache.SetData(format, obj); } return this.dataCache.GetData(format, autoConvert); }