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