4 types derived from GridEntry
System.Windows.Forms (4)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ArrayElementGridEntry.cs (1)
6internal class ArrayElementGridEntry : GridEntry
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (1)
12internal sealed partial class CategoryGridEntry : GridEntry
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
11internal partial class PropertyDescriptorGridEntry : GridEntry
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (1)
14internal class SingleSelectRootGridEntry : GridEntry, IRootGridEntry
226 references to GridEntry
System.Windows.Forms (226)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (11)
48private Dictionary<string, GridEntry>? _viewTabProperties; 67private GridEntry? _defaultEntry; 68private GridEntry? _rootEntry; 1144set => _gridView.SelectedGridEntry = (GridEntry)value; 1864foreach (GridEntry gridEntry in _viewTabProperties.Values) 2194internal GridEntry? GetDefaultGridEntry() => _defaultEntry ??= _currentEntries?[0]; 2958else if (changedItem is GridEntry gridEntry && gridEntry.Enumerable) 2972internal void OnSelectedGridItemChanged(GridEntry? oldEntry, GridEntry? newEntry) 4156if (_viewTabProperties is not null && _viewTabProperties.TryGetValue(tabName, out GridEntry? value)) 4165_rootEntry = GridEntry.CreateRootGridEntry(
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ArrayElementGridEntry.cs (1)
10public ArrayElementGridEntry(PropertyGrid ownerGrid, GridEntry parent, int index)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (4)
10/// Virtual, collapsible parent <see cref="GridEntry"/>. 17public CategoryGridEntry(PropertyGrid ownerGrid, GridEntry parent, string name, IEnumerable<GridEntry> children) 158internal override bool SendNotification(GridEntry entry, Notify notification)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (40)
42private GridEntry? _parent; 71protected GridEntry(PropertyGrid ownerGrid, GridEntry? parent) 214/// The <see cref="PropertyTab"/> that the <see cref="GridEntry"/> belongs to. 224/// Returns the default child <see cref="GridEntry"/> of this item. 231internal virtual GridEntry? DefaultChild 531/// The <see cref="PropertyGridView"/> that this <see cref="GridEntry"/> belongs to. 647/// to the upper left corner of the <see cref="GridEntry"/>. 671/// Recursively resets outline rectangles for this <see cref="GridEntry"/> and it's children. 678foreach (GridEntry child in Children) 685public GridEntry? ParentGridEntry 743/// Returns the Type of the value of this <see cref="GridEntry"/>, or null if the value is null. 748/// Gets or sets the value for the property that is represented by this <see cref="GridEntry"/>. 886internal static GridEntry? CreateRootGridEntry( 947GridEntry[]? childProperties = GetChildEntries(); 1037foreach (GridEntry gridEntry in _children) 1123internal bool EqualsIgnoreParent(GridEntry entry) 1140if (obj is GridEntry entry && EqualsIgnoreParent(entry)) 1167/// Returns the index of a child <see cref="GridEntry"/>. 1169internal int GetChildIndex(GridEntry entry) => Children.IndexOf(entry); 1173/// object being browsed. Walks up the <see cref="GridEntry"/> tree looking for an owner that is an 1248/// Returns a string with info about the currently selected <see cref="GridEntry"/>. 1256/// Returns the child <see cref="GridEntry"/> items for this <see cref="GridEntry"/>. 1258private GridEntry[]? GetChildEntries() 1269GridEntry[]? entries = null; 1342entries = new GridEntry[objArray.Length]; 1358entries = new GridEntry[properties.Count]; 1364GridEntry newEntry; 1502/// Paints the label portion of this <see cref="GridEntry"/> into the given <see cref="Graphics"/> object. 1506/// This is called by the <see cref="GridEntry"/> host (the <see cref="PropertyGridView"/>) when this 1507/// <see cref="GridEntry"/> needs to be painted. 1627/// Paints the outline portion (the expand / collapse area to the left) of this <see cref="GridEntry"/> into 1781/// Paints the value portion of this <see cref="GridEntry"/> into the given <see cref="Graphics"/> object. 1782/// This is called by the <see cref="GridEntry"/> host (the <see cref="PropertyGridView"/>) when this 1783/// <see cref="GridEntry"/> is to be painted. 2034/// Called when the outline icon portion of this <see cref="GridEntry"/> is clicked. 2150internal virtual bool SendNotification(GridEntry entry, Notify notification) 2180foreach (GridEntry child in ChildCollection) 2222((GridEntry)o).Refresh(); 2256/// Sets the value of this <see cref="GridEntry"/> from text.
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.Flags.cs (2)
55/// Used to distribute read-only behavior to child properties when the root <see cref="GridEntry"/> is 56/// read-only or one of the objects in the root <see cref="GridEntry"/> (with multiple select) is read-only.
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (31)
12internal class GridEntryAccessibleObject : AccessibleObject, IOwnedObject<GridEntry> 14private readonly WeakReference<GridEntry> _owningGridEntry; 20public GridEntryAccessibleObject(GridEntry owner) 29=> PropertyGridView is not null && PropertyGridView.IsHandleCreated && this.TryGetOwnerAs(out GridEntry? owner) 37if (!this.TryGetOwnerAs(out GridEntry? owner) || !owner.Expandable) 52internal override bool CanGetDefaultActionInternal => !this.TryGetOwnerAs(out GridEntry? owner) || !owner.Expandable; 55=> this.TryGetOwnerAs(out GridEntry? owner) ? owner.PropertyDescription : string.Empty; 60=> !this.TryGetOwnerAs(out GridEntry? owner) ? ExpandCollapseState.ExpandCollapseState_Collapsed : owner.Expandable 64public override string? Help => this.TryGetOwnerAs(out GridEntry? owner) ? owner.PropertyDescription : string.Empty; 68public override string? Name => this.TryGetOwnerAs(out GridEntry? owner) ? owner.PropertyLabel : null; 73this.TryGetOwnerAs(out GridEntry? owner) ? owner.OwnerGridView?.AccessibilityObject : null; 83if (PropertyGridView is null || !PropertyGridView.IsHandleCreated || !this.TryGetOwnerAs(out GridEntry? owner)) 143get => this.TryGetOwnerAs(out GridEntry? owner) ? owner.GetPropertyTextValue() : null; 146if (this.TryGetOwnerAs(out GridEntry? owner)) 169|| !this.TryGetOwnerAs(out GridEntry? owner)) 200/// For <see cref="GridEntry" /> the item hash code to make the ID unique. Grid items are not controls, 209this.TryGetOwnerAs(out GridEntry? owner) 230GridEntry? IOwnedObject<GridEntry>.Owner 231=> _owningGridEntry.TryGetTarget(out GridEntry? target) ? target : null; 235if (PropertyGridView is not null && PropertyGridView.IsHandleCreated && this.TryGetOwnerAs(out GridEntry? owner)) 246=> this.TryGetOwnerAs(out GridEntry? owner) ? owner.HasFocus ? this : null : null; 254|| !this.TryGetOwnerAs(out GridEntry? owner)) 283if (PropertyGridView is null || !PropertyGridView.IsHandleCreated || !this.TryGetOwnerAs(out GridEntry? owner)) 310if (this.TryGetOwnerAs(out GridEntry? owner) && owner.Expandable && owner.Expanded) 318if (this.TryGetOwnerAs(out GridEntry? owner) && owner.Expandable && !owner.Expanded) 329if (this.TryGetOwnerAs(out GridEntry? owner) && owner.ParentGridEntry is { } parentGridEntry) 356UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(this.TryGetOwnerAs(out GridEntry? owner) && owner.HasFocus), 363internal override bool IsIAccessibleExSupported() => this.TryGetOwnerAs(out GridEntry? owner) && owner.Expandable; 375if (this.TryGetOwnerAs(out GridEntry? owner) && owner.Expandable) 386if (!this.TryGetOwnerAs(out GridEntry? owner) || owner.OwnerGrid is null || owner.OwnerGrid.SortedByCategories)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntryCollection.cs (3)
6internal sealed class GridEntryCollection : NonNullCollection<GridEntry>, IDisposable 10public GridEntryCollection(IEnumerable<GridEntry>? items = null, bool disposeItems = true) 26foreach (GridEntry entry in this)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntryComparer.cs (3)
6internal class GridEntryComparer : IComparer<GridEntry> 10public int Compare(GridEntry? x, GridEntry? y)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ImmutablePropertyDescriptorGridEntry.cs (4)
24GridEntry parent, 41GridEntry? parentEntry = InstanceParentGridEntry; 101private GridEntry? InstanceParentGridEntry 105GridEntry? parent = ParentGridEntry;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\IRootGridEntry.cs (1)
9/// A top level <see cref="GridEntry"/> that represents the selected object or objects in the
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (3)
16GridEntry parent, 181internal override bool SendNotification(GridEntry entry, Notify notification) 195protected override void NotifyParentsOfChanges(GridEntry? entry)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.cs (1)
11/// Root <see cref="GridEntry"/> for the <see cref="PropertyGrid"/> when there are multiple objects
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyMerger.cs (2)
16GridEntry parentEntry, 98GridEntry parentEntry)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (4)
38GridEntry parent, 77GridEntry entry = this; 357protected virtual void NotifyParentsOfChanges(GridEntry? entry) 758GridEntry? parent = ParentGridEntry;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObject.cs (1)
222foreach (GridEntry childEntry in owner.Children)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (91)
73private GridEntry? _selectedGridEntry; 99private GridEntry? _lastClickedEntry; 190/// the selected row's <see cref="GridEntry"/>. 231/// the selected row's <see cref="GridEntry"/>. 479internal GridEntry? SelectedGridEntry 486foreach (GridEntry entry in _allGridEntries) 496GridEntry? equivalentEntry = FindEquivalentGridEntry(new GridEntryCollection(new[] { value }, disposeItems: false)); 591internal Rectangle AccessibilityGetGridEntryBounds(GridEntry gridEntry) 622internal int AccessibilityGetGridEntryChildID(GridEntry gridEntry) 644internal void AccessibilitySelect(GridEntry entry) 664GridEntry entry = entries[i]; 712GridEntry entry = entries[i]; 795GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 1067private static int GetEntryLabelIndent(GridEntry gridEntry) => gridEntry.PropertyLabelIndent + 1; 1069private int GetEntryLabelLength(Graphics g, GridEntry gridEntry) 1076private bool IsEntryLabelLong(Graphics g, GridEntry gridEntry) 1095GridEntry? gridEntry = GetGridEntryFromRow(row); 1150GridEntry? gridEntry = GetGridEntryFromRow(row); 1176GridEntry.PaintValueFlags.PaintInPlace 1177| GridEntry.PaintValueFlags.CheckShouldSerialize); 1197GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 1237GridEntry? gridEntry = GetGridEntryFromRow(row); 1347GridEntry entry = _allGridEntries[i]; 1439var gridEntry = GetGridEntryFromRow(_selectedRow); 1483GridEntry? gridEntry = GetGridEntryFromRow(row); 1512GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 1573GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 1582private GridEntry? FindEquivalentGridEntry(GridEntryCollection? gridEntries) 1596GridEntry? targetEntry = null; 1680var newEntries = new GridEntry[TotalProperties]; 1695private static int GetCurrentValueIndex(GridEntry gridEntry) 1777private static GridEntryCollection? GetGridEntryHierarchy(GridEntry? gridEntry) 1787var entries = new GridEntry[depth + 1]; 1799return new GridEntryCollection(new GridEntry[] { gridEntry }, disposeItems: false); 1802private GridEntry? GetGridEntryFromRow(int row) => GetGridEntryFromOffset(row + GetScrollOffset()); 1804private GridEntry? GetGridEntryFromOffset(int offset) 1818private static int GetGridEntriesFromOutline(GridEntryCollection? entries, int current, int target, GridEntry[] targetEntries) 1835GridEntry currentEntry = entries[i]; 1911internal int GetRowFromGridEntry(GridEntry? gridEntry) 1958GridEntry? gridEntry = (entry < 0) ? GetGridEntryFromRow(_selectedRow) : GetGridEntryFromOffset(entry); 1985internal void InvalidateGridEntryValue(GridEntry ge) 2242GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 2299GridEntry gridEntry = GetGridEntryFromRow(_selectedRow)!; 2307e.State.HasFlag(DrawItemState.Selected) ? GridEntry.PaintValueFlags.DrawSelected : default, 2345GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 2430private bool ProcessEnumUpAndDown(GridEntry entry, Keys keyCode, bool closeDropDown = true) 2490GridEntry gridEntry = GetGridEntryFromRow(_selectedRow)!; 2515GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 2683GridEntry? entry = GetGridEntryFromRow(_selectedRow); 2976GridEntry? gridEntry = GetGridEntryFromRow(pos.Y); 3049GridEntry? gridItem = GetGridEntryFromRow(rowMoveCurrent); 3370GridEntry gridEntry = (GridEntry)s!; 3384GridEntry gridEntry = (GridEntry)s!; 3398_lastClickedEntry = (GridEntry?)sender; 3404var gridEntry = (GridEntry)sender!; 3428_lastClickedEntry = (GridEntry?)sender; 3504var parent = (GridEntry)s; 3508var entries = new GridEntry[_allGridEntries!.Count]; 3531var newEntries = new GridEntry[newArraySize]; 3624GridEntry? oldGridEntry = _selectedGridEntry; 3661GridEntry? gridEntry = GetGridEntryFromRow(row); 3928internal void RecursivelyExpand(GridEntry? gridEntry, bool initialize, bool expand, int maxExpands) 3945GridEntry? selectedEntry = _selectedGridEntry; 3963foreach (GridEntry entry in TopLevelGridEntries) 3981GridEntry? gridEntry = null; 4104GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 4142GridEntry entry = entries[i]; 4154GridEntry? currentEntry = _selectedGridEntry; 4195internal void SelectGridEntry(GridEntry? entry, bool pageIn) 4263GridEntry? gridEntry = GetGridEntryFromRow(row); 4383GridEntry? oldSelectedGridEntry = _selectedGridEntry; 4468internal void SetExpand(GridEntry entry, bool value) 4501GridEntry? selectedEntry = _selectedGridEntry; 4504for (GridEntry? currentEntry = selectedEntry; currentEntry is not null; currentEntry = currentEntry.ParentGridEntry) 4609GridEntry? currentEntry = _selectedGridEntry; 4625internal bool CommitValue(GridEntry entry, object? value, bool closeDropDown = true) 4721GridEntry? currentEntry = _selectedGridEntry; 4755foreach (GridEntry gridEntry in _allGridEntries) 5040GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 5069private void UpdateHelpAttributes(GridEntry? oldEntry, GridEntry? newEntry) 5082GridEntry? temp = oldEntry; 5104private static void UpdateHelpAttributes(IHelpService helpService, GridEntry? entry, bool addAsF1) 5173GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 5189private void UpdateResetCommand(GridEntry? gridEntry) 5258GridEntry? curEntry = GetGridEntryFromRow(mouseLoc.Y); 5395foreach (GridEntry entry in TopLevelGridEntries)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.DropDownHolderAccessibleObject.cs (1)
30GridEntry? selectedEntry = gridView?.SelectedGridEntry;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridPositionData.cs (2)
21public GridEntry? Restore(PropertyGridView gridView) 24GridEntry? entry = gridView.FindEquivalentGridEntry(_selectedItemTree);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (15)
101public AccessibleObject? Next(GridEntry current) 109GridEntry? nextEntry = owner.GetGridEntryFromRow(++row); 149internal static AccessibleObject? GetPreviousGridEntry(GridEntry currentGridEntry, GridEntryCollection? gridEntryCollection, out bool currentGridEntryFound) 158GridEntry? previousGridEntry = null; 160foreach (GridEntry gridEntry in gridEntryCollection) 206internal static AccessibleObject? GetNextGridEntry(GridEntry currentGridEntry, GridEntryCollection? gridEntryCollection, out bool currentGridEntryFound) 215foreach (GridEntry gridEntry in gridEntryCollection) 262var targetEntries = new GridEntry[1]; 293var targetEntries = new GridEntry[1]; 323GridEntry? nextEntry; 338public AccessibleObject? Previous(GridEntry current) 346GridEntry? previousEntry = owner.GetGridEntryFromRow(--row); 364GridEntry? previousEntry; 411GridEntry? gridEntry = owner.SelectedGridEntry; 438GridEntry? gridEntry = owner.GetGridEntryFromRow(position.Y);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (5)
11/// Root <see cref="GridEntry"/> for the <see cref="PropertyGrid"/> when there is only one object 17private GridEntry? _defaultEntry; 108internal sealed override GridEntry? DefaultChild 250Dictionary<string, List<GridEntry>> categories = []; 265List<GridEntry> categoryGridEntries = [];
System\Windows\Forms\Design\IWindowsFormsEditorService.cs (1)
26/// <see cref="PropertyGridView.PopupEditor(int)"/> calls <see cref="GridEntry.EditPropertyValue(PropertyGridView)"/>