24 references to Dib
System.Windows.Forms (1)
System\Windows\Forms\OLE\DataObject.DataStore.cs (1)
96if (data is Bitmap && format.Equals(DataFormats.Dib))
System.Windows.Forms.Tests (22)
System\Windows\Forms\DataFormatsTests.cs (2)
15yield return new object[] { DataFormats.Dib, "DeviceIndependentBitmap" }; 46yield return new object[] { DataFormats.Dib, "DeviceIndependentBitmap", 8 };
System\Windows\Forms\DataObjectExtensionsTests.cs (3)
22Action tryGetData3 = () => DataObjectExtensions.TryGetData<string>(dataObject: null!, DataFormats.Dib, autoConvert: true, out _); 84dataObject.TryGetData(DataFormats.Dib, out Bitmap? bitmap).Should().BeFalse(); 118dataObject.TryGetData(DataFormats.Dib, out Bitmap? _).Should().BeFalse();
System\Windows\Forms\DataObjectTests.cs (17)
32DataFormats.Dib, 1257dataObject.SetData(DataFormats.Dib, autoConvert: true, image); 1264dataObject.GetData(DataFormats.Dib, autoConvert: true).Should().BeNull(); 1265dataObject.GetData(DataFormats.Dib, autoConvert: false).Should().BeNull(); 1272dataObject.GetDataPresent(DataFormats.Dib, autoConvert: true).Should().BeFalse(); 1273dataObject.GetDataPresent(DataFormats.Dib, autoConvert: false).Should().BeFalse(); 1410dataObject.SetData(DataFormats.Dib, autoConvert: true, image); 1417dataObject.GetData(DataFormats.Dib, autoConvert: true).Should().BeNull(); 1418dataObject.GetData(DataFormats.Dib, autoConvert: false).Should().BeNull(); 1425dataObject.GetDataPresent(DataFormats.Dib, autoConvert: true).Should().BeFalse(); 1426dataObject.GetDataPresent(DataFormats.Dib, autoConvert: false).Should().BeFalse(); 1516((Action)(() => dataObject.SetData(DataFormats.Dib, false, new Bitmap(10, 10)))) 1598dataObject.GetData(DataFormats.Dib, autoConvert: true).Should().BeNull(); 1599dataObject.GetData(DataFormats.Dib, autoConvert: false).Should().BeNull(); 1606dataObject.GetDataPresent(DataFormats.Dib, autoConvert: true).Should().BeFalse(); 1607dataObject.GetDataPresent(DataFormats.Dib, autoConvert: false).Should().BeFalse(); 2026{ DataFormats.Dib, TYMED.TYMED_HGLOBAL },
System.Windows.Forms.TestUtilities (1)
DataObjectTestHelpers.cs (1)
37DataFormats.Dib,