5 types derived from ListBox
System.Windows.Forms (2)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
17public partial class CheckedListBox : ListBox
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewListBox.cs (1)
8internal class GridViewListBox : ListBox
System.Windows.Forms.Design (3)
System\ComponentModel\Design\CollectionEditor.FilterListBox.cs (1)
13internal class FilterListBox : ListBox
System\Drawing\Design\ColorEditor.ColorUI.ColorEditorListBox.cs (1)
12private sealed class ColorEditorListBox : ListBox
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
15private class CursorUI : ListBox
9 instantiations of ListBox
PresentationUI (2)
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (1)
46this._credListBox = new System.Windows.Forms.ListBox();
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (1)
44_listBoxSummary = new System.Windows.Forms.ListBox();
System.Windows.Forms (1)
System\Windows\Forms\MDI\MDIWindowDialog.cs (1)
92_itemList = new ListBox();
System.Windows.Forms.Design (6)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
51ListBox listBox = new ListBox
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
271_dataColumns = new ListBox();
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
473_selectedColumns = new ListBox();
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
27_typesListBox = new();
System\Windows\Forms\Design\FormatControl.Designer.cs (2)
46dateTimeFormatsListBox = new System.Windows.Forms.ListBox(); 48formatTypeListBox = new System.Windows.Forms.ListBox();
68 references to ListBox
PresentationUI (2)
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (1)
193private System.Windows.Forms.ListBox _credListBox;
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (1)
234private System.Windows.Forms.ListBox _listBoxSummary;
System.Windows.Forms (41)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedListBoxAccessibleObject.cs (1)
13private protected override ListBoxItemAccessibleObject CreateItemAccessibleObject(ListBox listBox, ItemArray.Entry item)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (3)
159/// Collection of items in this <see cref="ListBox"/> 361protected override ListBox.ObjectCollection CreateItemCollection() 385/// Invalidates the given item in the <see cref="ListBox"/>
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.ObjectCollection.cs (1)
8public new class ObjectCollection : ListBox.ObjectCollection
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (19)
24public ListBoxAccessibleObject(ListBox owningListBox) : base(owningListBox) 31internal override Rectangle BoundingRectangle => this.IsOwnerHandleCreated(out ListBox? owner) ? 37=> this.IsOwnerHandleCreated(out ListBox? owner) && owner.SelectionMode != SelectionMode.None; 40=> this.IsOwnerHandleCreated(out ListBox? owner) 49if (this.TryGetOwnerAs(out ListBox? owner) && owner.Focused) 58private protected virtual ListBoxItemAccessibleObject CreateItemAccessibleObject(ListBox listBox, ItemArray.Entry item) 63if (!this.IsOwnerHandleCreated(out ListBox? _)) 80int childCount = this.TryGetOwnerAs(out ListBox? owner) ? owner.Items.Count : 0; 95internal override IRawElementProviderFragment.Interface? GetFocus() => this.IsOwnerHandleCreated(out ListBox? _) ? GetFocused() : null; 106UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => this.TryGetOwnerAs(out ListBox? owner) 121=> this.TryGetOwnerAs(out ListBox? _) || base.IsIAccessibleExSupported(); 143if (!this.TryGetOwnerAs(out ListBox? owner)) 168if (this.IsOwnerHandleCreated(out ListBox? owner)) 176if (!this.IsOwnerHandleCreated(out ListBox? _)) 188if (!this.TryGetOwnerAs(out ListBox? owner)) 216return this.TryGetOwnerAs(out ListBox? owner) ? owner.Items.Count : 0; 221if (this.TryGetOwnerAs(out ListBox? owner)) 235if (this.TryGetOwnerAs(out ListBox? owner)) 250if (!this.IsOwnerHandleCreated(out ListBox? _))
System\Windows\Forms\Controls\ListBoxes\ListBox.IntegerCollection.cs (2)
13private readonly ListBox _owner; 17public IntegerCollection(ListBox owner)
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (2)
19private readonly ListBox _owningListBox; 21public ListBoxItemAccessibleObject(ListBox owningListBox, ItemArray.Entry itemEntry, ListBoxAccessibleObject owningAccessibleObject)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (4)
20private readonly ListBox _owner; 23public ObjectCollection(ListBox owner) 31public ObjectCollection(ListBox owner, ObjectCollection value) 42public ObjectCollection(ListBox owner, object[] value)
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedIndexCollection.cs (2)
13private readonly ListBox _owner; 15public SelectedIndexCollection(ListBox owner)
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (2)
17private readonly ListBox _owner; 22public SelectedObjectCollection(ListBox owner)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewListBoxAccessibleObject.cs (1)
14private class GridViewListBoxAccessibleObject : ListBox.ListBoxAccessibleObject
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewListBoxItemAccessibleObject.cs (1)
5using static System.Windows.Forms.ListBox;
System\Windows\Forms\Controls\TreeView\TreeView.TreeViewAccessibleObject.cs (1)
17internal override Rectangle BoundingRectangle => this.IsOwnerHandleCreated(out ListBox? owner) ?
System\Windows\Forms\MDI\MDIWindowDialog.cs (1)
8private ListBox _itemList;
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (1)
9/// This event is fired by owner drawn <see cref="Control"/> objects, such as <see cref="ListBox"/> and
System.Windows.Forms.Design (25)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
51ListBox listBox = new ListBox
System\Drawing\Design\ColorEditor.ColorUI.cs (4)
24private ListBox _lbSystem; 25private ListBox _lbCommon; 243if (sender is ListBox lb && lb.SelectedItem is Color selectedColor) 253if (sender is not ListBox lb)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
17private ListBox _dataColumns;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
14private ListBox _selectedColumns;
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
15private readonly ListBox _typesListBox;
System\Windows\Forms\Design\FormatControl.Designer.cs (2)
199private System.Windows.Forms.ListBox formatTypeListBox; 207private System.Windows.Forms.ListBox dateTimeFormatsListBox;
System\Windows\Forms\Design\ListBoxDesigner.cs (13)
25ListBox listBox = (ListBox)Component; 39return ((ListBox)Component).Dock; 43ListBox listBox = (ListBox)Component; 103if (component is ListBox listBox) 123((ListBox)Component).FormattingEnabled = true; 128if (TypeDescriptorHelper.TryGetPropertyValue(Component, nameof(ListBox.Name), out string? name) 155&& e.Member.Name == nameof(ListBox.Items) 156&& TypeDescriptorHelper.TryGetPropertyValue(Component, nameof(ListBox.Name), out string? name) 170if (TypeDescriptorHelper.TryGetPropertyValue(Component, nameof(ListBox.Name), out string? name) 183ListBox listBox = (ListBox)Control;
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (2)
659if (sender is ListBox listBox) 849/// Invalidate the <see cref="ListBox"/> and the SelectedItemName Label on top of the propertyGrid.