23 references to IsEmpty
System.Windows.Forms (8)
System\Windows\Forms\Accessibility\AccessibleObject.cs (2)
1019Debug.Assert(result.IsEmpty || result.vt == VARENUM.VT_I4); 2804childID.IsEmpty
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (2)
27Debug.Assert(nativeValue.IsEmpty, $"Expected IUnknown, got {nativeValue.Type}"); 82Debug.Assert(nativeValue.IsEmpty, $"Expected IUnknown, got {nativeValue.Type}");
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (1)
37Debug.Assert(nativeValue.IsEmpty, $"Expected IUnknown, got {nativeValue.Type}");
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
641if (ConvertingNativeType && !nativeValue.IsEmpty)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
192return result.IsEmpty ? VARIANT.False : result;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
172*isActive = !hasKeyboardFocus.IsEmpty && (bool)hasKeyboardFocus;
System.Windows.Forms.Primitives.Tests (1)
Interop\Oleaut32\ITypeInfoTests.cs (1)
343varResult.IsEmpty.Should().BeTrue();
System.Windows.Forms.Tests (14)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxAccessibleObjectTests.cs (1)
304Assert.Equal(expected, !result.IsEmpty && (bool)result);
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (1)
745Assert.Equal(expected, !result.IsEmpty && (bool)result);
System\Windows\Forms\AccessibleObjects\LinkLabel.Link.LinkAccessibleObjectTests.cs (1)
278Assert.Equal(expected, !result.IsEmpty && (bool)result);
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (1)
159Assert.Equal(expected, !result.IsEmpty && (bool)result);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (1)
978Assert.Equal(expected, !result.IsEmpty && (bool)result);
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarAccessibleObjectTests.cs (1)
155Assert.Equal(expected, !result.IsEmpty && (bool)result);
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (1)
792Assert.Equal(expected, !result.IsEmpty && (bool)result);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
521Assert.Equal(expected, !result.IsEmpty && (bool)result);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (1)
474Assert.Equal(expected, !result.IsEmpty && (bool)result);
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObjectTests.cs (1)
145Assert.Equal(expected, !result.IsEmpty && (bool)result);
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (2)
51Assert.True(result.IsEmpty); 88Assert.True(result.IsEmpty);
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (2)
132Assert.True(Instance.ConvertManagedToNative(null, null, ref cancelSet).IsEmpty); 186Assert.True(Instance.ConvertManagedToNative(new object(), null, ref cancelSet).IsEmpty);