5 types derived from GridItem
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
18
internal abstract partial class GridEntry :
GridItem
, ITypeDescriptorContext
System.Windows.Forms.Tests (4)
System\Windows\Forms\GridItemCollectionTests.cs (1)
57
private class SubGridItem :
GridItem
System\Windows\Forms\GridItemTests.cs (1)
48
private class SubGridItem :
GridItem
System\Windows\Forms\PropertyValueChangedEventArgsTests.cs (1)
26
private class SubGridItem :
GridItem
System\Windows\Forms\SelectedGridItemChangedEventArgsTests.cs (1)
28
private 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.
52
public 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)
15
private protected IReadOnlyList<
GridItem
> _entries;
17
internal GridItemCollection(IReadOnlyList<
GridItem
>? entries)
19
_entries = entries ?? Array.Empty<
GridItem
>();
34
public
GridItem
this[int index] => _entries[index];
36
public
GridItem
? this[string label]
40
foreach (
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)
852
GridItem
? selectedGridItem = SelectedGridItem;
1141
public
GridItem
? SelectedGridItem
1440
/// Event that is fired when the selected <see cref="
GridItem
"/> is changed.
2942
internal void OnPropertyValueSet(
GridItem
changedItem, object? oldValue)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (5)
520
ObjectDisposedException.ThrowIf(Disposed, typeof(
GridItem
));
707
public override
GridItem
? Parent
711
ObjectDisposedException.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)
187
GridItem
? topLevelGridEntry = topLevelGridEntries[i];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (1)
124
GridItem
targetEntry = topLevelGridEntries[categoryIndex];
System\Windows\Forms\Controls\PropertyGrid\SelectedGridItemChangedEventArgs.cs (4)
14
public SelectedGridItemChangedEventArgs(
GridItem
? oldSel,
GridItem
? newSel)
23
public
GridItem
? OldSelection { get; }
28
public
GridItem
? NewSelection { get; }
System\Windows\Forms\PropertyValueChangedEventArgs.cs (2)
11
public PropertyValueChangedEventArgs(
GridItem
? changedItem, object? oldValue)
17
public
GridItem
? ChangedItem { get; }
System.Windows.Forms.Tests (14)
System\Windows\Forms\GridItemCollectionTests.cs (1)
65
public override
GridItem
Parent => null;
System\Windows\Forms\GridItemTests.cs (1)
56
public override
GridItem
Parent => null;
System\Windows\Forms\PropertyGridTests.cs (7)
2394
Mock<
GridItem
> mockGridItem = new(MockBehavior.Strict);
3930
GridItem
selectedItem = propertyGrid.SelectedGridItem;
3994
var
gridItem = new Mock<
GridItem
>().Object;
4060
var
selectedGridItem = propertyGrid.SelectedGridItem;
4113
Mock<
GridItem
> gridItemMock = new();
4114
var
gridItem = gridItemMock.Object;
System\Windows\Forms\PropertyValueChangedEventArgsTests.cs (2)
19
public void Ctor_GridItem_Object(
GridItem
changedItem, object oldValue)
34
public override
GridItem
Parent { get; }
System\Windows\Forms\SelectedGridItemChangedEventArgsTests.cs (3)
21
public void Ctor_GridItem_GridItem(
GridItem
oldSel,
GridItem
newSel)
36
public override
GridItem
Parent { get; }
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
494
GridItem
gridItem = _propertyGrid.SelectedGridItem.GridItems[0];