1 write to _owner
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
25
_owner
= owner.OrThrowIfNull();
51 references to _owner
System.Windows.Forms (51)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (51)
62
_items ??= new ItemArray(
_owner
);
87
_owner
.CheckNoDataSource();
89
_owner
.UpdateHorizontalExtent();
98
if (!
_owner
._sorted)
128
if (
_owner
._sorted)
130
if (
_owner
.IsHandleCreated)
132
_owner
.NativeInsert(index, item);
133
_owner
.UpdateMaxItemWidth(item, false);
135
_owner
._selectedItems?.Dirty();
141
if (
_owner
.IsHandleCreated)
143
_owner
.NativeAdd(item);
144
_owner
.UpdateMaxItemWidth(item, false);
167
_owner
.CheckNoDataSource();
175
_owner
.CheckNoDataSource();
183
_owner
.BeginUpdate();
196
_owner
.UpdateHorizontalExtent();
197
_owner
.EndUpdate();
217
_owner
.CheckNoDataSource();
233
_owner
.CheckNoDataSource();
244
int cnt =
_owner
.Items.Count;
247
_owner
.UpdateMaxItemWidth(InnerArray.GetItem(i), true);
250
if (
_owner
.IsHandleCreated)
252
_owner
.NativeClear();
256
_owner
._maxWidth = -1;
257
_owner
.UpdateHorizontalExtent();
258
_owner
.ClearListItemAccessibleObjects();
325
_owner
.CheckNoDataSource();
333
if (
_owner
._sorted)
340
if (
_owner
.IsHandleCreated)
346
_owner
.NativeInsert(index, item);
347
_owner
.UpdateMaxItemWidth(item, false);
360
_owner
.UpdateHorizontalExtent();
371
_owner
.CheckNoDataSource();
387
_owner
.CheckNoDataSource();
392
_owner
.UpdateMaxItemWidth(InnerArray.GetItem(index), true);
396
_owner
.RemoveListItemAccessibleObjectAt(index);
402
if (
_owner
.IsHandleCreated)
404
_owner
.NativeRemoveAt(index);
407
_owner
.UpdateHorizontalExtent();
416
_owner
.UpdateMaxItemWidth(InnerArray.GetItem(index), true);
421
if (
_owner
.IsHandleCreated)
423
bool selected = (
_owner
.SelectedIndex == index);
424
if (string.Compare(
_owner
.GetItemText(value),
_owner
.NativeGetItemText(index), true, CultureInfo.CurrentCulture) != 0)
426
_owner
.NativeRemoveAt(index);
427
_owner
.SelectedItems.SetSelected(index, false);
428
_owner
.NativeInsert(index, value);
429
_owner
.UpdateMaxItemWidth(value, false);
432
_owner
.SelectedIndex = index;
440
_owner
.OnSelectedIndexChanged(EventArgs.Empty); // will fire selectedvaluechanged
445
_owner
.UpdateHorizontalExtent();