1 write to _owner
System.Windows.Forms (1)
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (1)
22
_owner
= owner;
55 references to _owner
System.Windows.Forms (55)
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (55)
29
if (!
_owner
.IsAccessibilityObjectCreated)
39
if (
_owner
.AccessibilityObject is ComboBoxAccessibleObject accessibleObject)
106
_owner
.CheckNoDataSource();
108
if (
_owner
.UpdateNeeded() &&
_owner
.AutoCompleteSource == AutoCompleteSource.ListItems)
110
_owner
.SetAutoComplete(false, false);
121
if (!
_owner
._sorted)
142
if (
_owner
._sorted)
144
if (
_owner
.IsHandleCreated)
146
_owner
.NativeInsert(index, item);
152
if (
_owner
.IsHandleCreated)
154
_owner
.NativeAdd(item);
179
_owner
.CheckNoDataSource();
180
_owner
.BeginUpdate();
187
_owner
.EndUpdate();
203
if (
_owner
.AutoCompleteSource == AutoCompleteSource.ListItems)
205
_owner
.SetAutoComplete(false, false);
225
_owner
.CheckNoDataSource();
235
_owner
.CheckNoDataSource();
241
if (
_owner
.IsHandleCreated)
243
_owner
.NativeClear();
249
_owner
._selectedIndex = -1;
250
if (
_owner
.AutoCompleteSource == AutoCompleteSource.ListItems)
252
_owner
.SetAutoComplete(false, true /*recreateHandle*/);
310
_owner
.CheckNoDataSource();
319
if (
_owner
._sorted)
326
if (
_owner
.IsHandleCreated)
332
_owner
.NativeInsert(index, item);
339
if (
_owner
.AutoCompleteSource == AutoCompleteSource.ListItems)
341
_owner
.SetAutoComplete(false, false);
359
_owner
.CheckNoDataSource();
364
if (
_owner
.IsHandleCreated)
366
_owner
.NativeRemoveAt(index);
372
if (!
_owner
.IsHandleCreated)
374
if (index <
_owner
._selectedIndex)
376
_owner
._selectedIndex--;
378
else if (index ==
_owner
._selectedIndex)
380
_owner
._selectedIndex = -1;
381
_owner
.UpdateText();
385
if (
_owner
.AutoCompleteSource == AutoCompleteSource.ListItems)
387
_owner
.SetAutoComplete(false, false);
414
if (!
_owner
.IsHandleCreated)
419
bool selected = (index ==
_owner
.SelectedIndex);
421
if (string.Compare(
_owner
.GetItemText(value),
_owner
.NativeGetItemText(index), true, CultureInfo.CurrentCulture) != 0)
423
_owner
.NativeRemoveAt(index);
424
_owner
.NativeInsert(index, value);
427
_owner
.SelectedIndex = index;
428
_owner
.UpdateText();
431
if (
_owner
.AutoCompleteSource == AutoCompleteSource.ListItems)
433
_owner
.SetAutoComplete(false, false);
442
_owner
.OnSelectedItemChanged(EventArgs.Empty); // we do this because set_SelectedIndex does this. (for consistency)
443
_owner
.OnSelectedIndexChanged(EventArgs.Empty);
471
string? itemName1 =
_owner
.GetItemText(entry1.Item);
472
string? itemName2 =
_owner
.GetItemText(entry2.Item);