11 instantiations of Entry
System.Windows.Forms (3)
System\Windows\Forms\Internal\ItemArray.cs (3)
49
Entry entry =
new
(item);
220
InsertEntry(index, new
Entry
(item));
280
return element is Entry entryElement ? entryElement : new
Entry
(element);
System.Windows.Forms.Tests (8)
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (3)
19
Assert.Throws<ArgumentNullException>(() => { new CheckedListBoxItemAccessibleObject(null, new ItemArray.
Entry
("A"), accessibleObject); });
38
Assert.Throws<ArgumentNullException>(() => { new CheckedListBoxItemAccessibleObject(checkedListBox, new ItemArray.
Entry
("A"), null); });
335
new ItemArray.
Entry
("Item 1"),
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (1)
190
ItemArray.Entry itemEntry = new ItemArray.
Entry
("Test Item");
System\Windows\Forms\AccessibleObjects\PropertyGridView.GridViewListBoxItemAccessibleObjectTests.cs (4)
20
Assert.Throws<TargetInvocationException>(() => (AccessibleObject)Activator.CreateInstance(type, [null, new ItemArray.
Entry
("A")]));
38
var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, [control, new ItemArray.
Entry
("A")]);
53
var itemEntry = new ItemArray.
Entry
(testName);
67
var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, [control, new ItemArray.
Entry
("A")]);
31 references to Entry
System.Windows.Forms (28)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedListBoxAccessibleObject.cs (1)
13
private protected override ListBoxItemAccessibleObject CreateItemAccessibleObject(ListBox listBox, ItemArray.
Entry
item)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedListBoxItemAccessibleObject.cs (1)
15
public CheckedListBoxItemAccessibleObject(CheckedListBox owningCheckedListBox, ItemArray.
Entry
item, CheckedListBoxAccessibleObject owningAccessibleObject) : base(owningCheckedListBox, item, owningAccessibleObject)
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (5)
18
private readonly Dictionary<ItemArray.
Entry
, ListBoxItemAccessibleObject> _itemAccessibleObjects;
58
private protected virtual ListBoxItemAccessibleObject CreateItemAccessibleObject(ListBox listBox, ItemArray.
Entry
item)
148
IReadOnlyList<ItemArray.
Entry
?> entries = owner.Items.InnerArray.Entries;
154
ItemArray.
Entry
? item = entries[index];
198
ItemArray.
Entry
? item = owner.Items.InnerArray.Entries[index];
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (2)
17
private readonly ItemArray.
Entry
_itemEntry;
21
public ListBoxItemAccessibleObject(ListBox owningListBox, ItemArray.
Entry
itemEntry, ListBoxAccessibleObject owningAccessibleObject)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
104
Entry
entry = GetEntry(item);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewListBoxItemAccessibleObject.cs (2)
14
private readonly ItemArray.
Entry
_owningItem;
16
public GridViewListBoxItemAccessibleObject(GridViewListBox owningGridViewListBox, ItemArray.
Entry
owningItem)
System\Windows\Forms\Internal\ItemArray.cs (15)
22
internal partial class ItemArray : IComparer<
Entry
>
27
private readonly List<
Entry
> _entries;
35
internal IReadOnlyList<
Entry
?> Entries => _entries;
49
Entry
entry = new(item);
123
foreach (
Entry
entry in _entries)
171
internal
Entry
GetEntryObject(int virtualIndex, int stateMask = 0)
199
foreach (
Entry
entry in _entries)
204
if ((item is
Entry
itemEntry && entry == itemEntry) || entry.Item.Equals(item))
223
public void InsertEntry(int index,
Entry
item)
278
public static
Entry
GetEntry(object element)
280
return element is
Entry
entryElement ? entryElement : new Entry(element);
286
public int BinarySearch(
Entry
element)
299
int IComparer<
Entry
>.Compare(
Entry
? entry1,
Entry
? entry2)
System\Windows\Forms\Internal\ItemArray.EntryEnumerator.cs (1)
50
var
entry = _items._entries[_current];
System.Windows.Forms.Tests (3)
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (1)
190
ItemArray.
Entry
itemEntry = new ItemArray.Entry("Test Item");
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (1)
124
ItemArray.
Entry
? item = listBox.Items.InnerArray.Entries[0];
System\Windows\Forms\AccessibleObjects\PropertyGridView.GridViewListBoxItemAccessibleObjectTests.cs (1)
53
var
itemEntry = new ItemArray.Entry(testName);