5 types derived from GridItem
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
18internal abstract partial class GridEntry : GridItem, ITypeDescriptorContext
System.Windows.Forms.Tests (4)
System\Windows\Forms\GridItemCollectionTests.cs (1)
57private class SubGridItem : GridItem
System\Windows\Forms\GridItemTests.cs (1)
48private class SubGridItem : GridItem
System\Windows\Forms\PropertyValueChangedEventArgsTests.cs (1)
26private class SubGridItem : GridItem
System\Windows\Forms\SelectedGridItemChangedEventArgsTests.cs (1)
28private class SubGridItem : GridItem
55 references to GridItem
System.Windows.Forms (40)
System\Windows\Forms\Controls\PropertyGrid\GridItem.cs (13)
22/// Gets or sets user-defined data about the <see cref="GridItem"/>. 33/// Retrieves the child <see cref="GridItem"/>s, if any, of this <see cref="GridItem"/>. 38/// Retrieves the type of this <see cref="GridItem"/>. 43/// Retrieves the text label of this <see cref="GridItem"/>. This may be different from the actual 44/// PropertyName. For <see cref="GridItemType.Property"/> <see cref="GridItem"/>s, retrieve the 50/// Retrieves parent <see cref="GridItem"/> of this <see cref="GridItem"/>, if any. 52public abstract GridItem? Parent { get; } 55/// If this item is a <see cref="GridItemType.Property"/> <see cref="GridItem"/>, this retrieves the 56/// <see cref="System.ComponentModel.PropertyDescriptor"/> that is associated with this <see cref="GridItem"/>. 75/// Retrieves or sets whether the <see cref="GridItem"/> is in an expanded state. 84/// Attempts to select this <see cref="GridItem"/> in the <see cref="PropertyGrid"/>.
System\Windows\Forms\Controls\PropertyGrid\GridItemCollection.cs (6)
15private protected IReadOnlyList<GridItem> _entries; 17internal GridItemCollection(IReadOnlyList<GridItem>? entries) 19_entries = entries ?? Array.Empty<GridItem>(); 34public GridItem this[int index] => _entries[index]; 36public GridItem? this[string label] 40foreach (GridItem item in _entries)
System\Windows\Forms\Controls\PropertyGrid\GridItemType.cs (4)
9/// The <see cref="GridItem"/> corresponds to a property. 14/// The <see cref="GridItem"/> is a category name. 24/// The <see cref="GridItem"/> is an element of an array. 29/// The <see cref="GridItem"/> is the root in the grid hierarchy.
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (4)
852GridItem? selectedGridItem = SelectedGridItem; 1141public GridItem? SelectedGridItem 1440/// Event that is fired when the selected <see cref="GridItem"/> is changed. 2942internal void OnPropertyValueSet(GridItem changedItem, object? oldValue)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (5)
520ObjectDisposedException.ThrowIf(Disposed, typeof(GridItem)); 707public override GridItem? Parent 711ObjectDisposedException.ThrowIf(Disposed, typeof(GridItem)); 1499=> serviceType == typeof(GridItem) ? this : (_parent?.GetService(serviceType)); 2137/// The owner of the <see cref="GridItem"/>.
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (1)
187GridItem? topLevelGridEntry = topLevelGridEntries[i];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (1)
124GridItem targetEntry = topLevelGridEntries[categoryIndex];
System\Windows\Forms\Controls\PropertyGrid\SelectedGridItemChangedEventArgs.cs (4)
14public SelectedGridItemChangedEventArgs(GridItem? oldSel, GridItem? newSel) 23public GridItem? OldSelection { get; } 28public GridItem? NewSelection { get; }
System\Windows\Forms\PropertyValueChangedEventArgs.cs (2)
11public PropertyValueChangedEventArgs(GridItem? changedItem, object? oldValue) 17public GridItem? ChangedItem { get; }
System.Windows.Forms.Tests (14)
System\Windows\Forms\GridItemCollectionTests.cs (1)
65public override GridItem Parent => null;
System\Windows\Forms\GridItemTests.cs (1)
56public override GridItem Parent => null;
System\Windows\Forms\PropertyGridTests.cs (7)
2394Mock<GridItem> mockGridItem = new(MockBehavior.Strict); 3930GridItem selectedItem = propertyGrid.SelectedGridItem; 3994var gridItem = new Mock<GridItem>().Object; 4060var selectedGridItem = propertyGrid.SelectedGridItem; 4113Mock<GridItem> gridItemMock = new(); 4114var gridItem = gridItemMock.Object;
System\Windows\Forms\PropertyValueChangedEventArgsTests.cs (2)
19public void Ctor_GridItem_Object(GridItem changedItem, object oldValue) 34public override GridItem Parent { get; }
System\Windows\Forms\SelectedGridItemChangedEventArgsTests.cs (3)
21public void Ctor_GridItem_GridItem(GridItem oldSel, GridItem newSel) 36public override GridItem Parent { get; }
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
494GridItem gridItem = _propertyGrid.SelectedGridItem.GridItems[0];