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
230 references to GridEntry
System.Windows.Forms (230)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (11)
48private Dictionary<string, GridEntry>? _viewTabProperties; 67private GridEntry? _defaultEntry; 68private GridEntry? _rootEntry; 1188set => _gridView.SelectedGridEntry = (GridEntry)value; 1908foreach (GridEntry gridEntry in _viewTabProperties.Values) 2241internal GridEntry? GetDefaultGridEntry() => _defaultEntry ??= _currentEntries?[0]; 3005else if (changedItem is GridEntry gridEntry && gridEntry.Enumerable) 3019internal void OnSelectedGridItemChanged(GridEntry? oldEntry, GridEntry? newEntry) 4200if (_viewTabProperties is not null && _viewTabProperties.TryGetValue(tabName, out GridEntry? value)) 4209_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.CategoryGridEntryAccessibleObject.cs (1)
53foreach (var topLevelGridEntry in topLevelGridEntries)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (5)
10/// Virtual, collapsible parent <see cref="GridEntry"/>. 17public CategoryGridEntry(PropertyGrid ownerGrid, GridEntry parent, string name, IEnumerable<GridEntry> children) 26foreach (var child in ChildCollection) 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) 208/// The <see cref="PropertyTab"/> that the <see cref="GridEntry"/> belongs to. 218/// Returns the default child <see cref="GridEntry"/> of this item. 225internal virtual GridEntry? DefaultChild 522/// The <see cref="PropertyGridView"/> that this <see cref="GridEntry"/> belongs to. 638/// to the upper left corner of the <see cref="GridEntry"/>. 662/// Recursively resets outline rectangles for this <see cref="GridEntry"/> and it's children. 669foreach (GridEntry child in Children) 676public GridEntry? ParentGridEntry 734/// Returns the Type of the value of this <see cref="GridEntry"/>, or null if the value is null. 739/// Gets or sets the value for the property that is represented by this <see cref="GridEntry"/>. 877internal static GridEntry? CreateRootGridEntry( 938GridEntry[]? childProperties = GetChildEntries(); 1028foreach (GridEntry gridEntry in _children) 1114internal bool EqualsIgnoreParent(GridEntry entry) 1131if (obj is GridEntry entry && EqualsIgnoreParent(entry)) 1158/// Returns the index of a child <see cref="GridEntry"/>. 1160internal int GetChildIndex(GridEntry entry) => Children.IndexOf(entry); 1164/// object being browsed. Walks up the <see cref="GridEntry"/> tree looking for an owner that is an 1239/// Returns a string with info about the currently selected <see cref="GridEntry"/>. 1247/// Returns the child <see cref="GridEntry"/> items for this <see cref="GridEntry"/>. 1249private GridEntry[]? GetChildEntries() 1260GridEntry[]? entries = null; 1333entries = new GridEntry[objArray.Length]; 1349entries = new GridEntry[properties.Count]; 1355GridEntry newEntry; 1493/// Paints the label portion of this <see cref="GridEntry"/> into the given <see cref="Graphics"/> object. 1497/// This is called by the <see cref="GridEntry"/> host (the <see cref="PropertyGridView"/>) when this 1498/// <see cref="GridEntry"/> needs to be painted. 1618/// Paints the outline portion (the expand / collapse area to the left) of this <see cref="GridEntry"/> into 1772/// Paints the value portion of this <see cref="GridEntry"/> into the given <see cref="Graphics"/> object. 1773/// This is called by the <see cref="GridEntry"/> host (the <see cref="PropertyGridView"/>) when this 1774/// <see cref="GridEntry"/> is to be painted. 2025/// Called when the outline icon portion of this <see cref="GridEntry"/> is clicked. 2141internal virtual bool SendNotification(GridEntry entry, Notify notification) 2171foreach (GridEntry child in ChildCollection) 2213((GridEntry)o).Refresh(); 2247/// 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, 135GridEntry 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)
74private GridEntry? _selectedGridEntry; 100private GridEntry? _lastClickedEntry; 191/// the selected row's <see cref="GridEntry"/>. 243/// the selected row's <see cref="GridEntry"/>. 502internal GridEntry? SelectedGridEntry 509foreach (GridEntry entry in _allGridEntries) 519GridEntry? equivalentEntry = FindEquivalentGridEntry(new GridEntryCollection(new[] { value }, disposeItems: false)); 614internal Rectangle AccessibilityGetGridEntryBounds(GridEntry gridEntry) 645internal int AccessibilityGetGridEntryChildID(GridEntry gridEntry) 667internal void AccessibilitySelect(GridEntry entry) 687GridEntry entry = entries[i]; 735GridEntry entry = entries[i]; 818GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 1090private static int GetEntryLabelIndent(GridEntry gridEntry) => gridEntry.PropertyLabelIndent + 1; 1092private int GetEntryLabelLength(Graphics g, GridEntry gridEntry) 1099private bool IsEntryLabelLong(Graphics g, GridEntry gridEntry) 1118GridEntry? gridEntry = GetGridEntryFromRow(row); 1173GridEntry? gridEntry = GetGridEntryFromRow(row); 1199GridEntry.PaintValueFlags.PaintInPlace 1200| GridEntry.PaintValueFlags.CheckShouldSerialize); 1220GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 1260GridEntry? gridEntry = GetGridEntryFromRow(row); 1376GridEntry entry = _allGridEntries[i]; 1468var gridEntry = GetGridEntryFromRow(_selectedRow); 1512GridEntry? gridEntry = GetGridEntryFromRow(row); 1541GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 1602GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 1611private GridEntry? FindEquivalentGridEntry(GridEntryCollection? gridEntries) 1625GridEntry? targetEntry = null; 1709var newEntries = new GridEntry[TotalProperties]; 1724private static int GetCurrentValueIndex(GridEntry gridEntry) 1806private static GridEntryCollection? GetGridEntryHierarchy(GridEntry? gridEntry) 1816var entries = new GridEntry[depth + 1]; 1828return new GridEntryCollection(new GridEntry[] { gridEntry }, disposeItems: false); 1831private GridEntry? GetGridEntryFromRow(int row) => GetGridEntryFromOffset(row + GetScrollOffset()); 1833private GridEntry? GetGridEntryFromOffset(int offset) 1847private static int GetGridEntriesFromOutline(GridEntryCollection? entries, int current, int target, GridEntry[] targetEntries) 1864GridEntry currentEntry = entries[i]; 1940internal int GetRowFromGridEntry(GridEntry? gridEntry) 1987GridEntry? gridEntry = (entry < 0) ? GetGridEntryFromRow(_selectedRow) : GetGridEntryFromOffset(entry); 2014internal void InvalidateGridEntryValue(GridEntry ge) 2271GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 2328GridEntry gridEntry = GetGridEntryFromRow(_selectedRow)!; 2336e.State.HasFlag(DrawItemState.Selected) ? GridEntry.PaintValueFlags.DrawSelected : default, 2374GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 2459private bool ProcessEnumUpAndDown(GridEntry entry, Keys keyCode, bool closeDropDown = true) 2519GridEntry gridEntry = GetGridEntryFromRow(_selectedRow)!; 2544GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 2727GridEntry? entry = GetGridEntryFromRow(_selectedRow); 3020GridEntry? gridEntry = GetGridEntryFromRow(pos.Y); 3093GridEntry? gridItem = GetGridEntryFromRow(rowMoveCurrent); 3420GridEntry gridEntry = (GridEntry)s!; 3434GridEntry gridEntry = (GridEntry)s!; 3448_lastClickedEntry = (GridEntry?)sender; 3454var gridEntry = (GridEntry)sender!; 3478_lastClickedEntry = (GridEntry?)sender; 3554var parent = (GridEntry)s; 3558var entries = new GridEntry[_allGridEntries!.Count]; 3581var newEntries = new GridEntry[newArraySize]; 3674GridEntry? oldGridEntry = _selectedGridEntry; 3711GridEntry? gridEntry = GetGridEntryFromRow(row); 3978internal void RecursivelyExpand(GridEntry? gridEntry, bool initialize, bool expand, int maxExpands) 3995GridEntry? selectedEntry = _selectedGridEntry; 4013foreach (GridEntry entry in TopLevelGridEntries) 4031GridEntry? gridEntry = null; 4154GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 4192GridEntry entry = entries[i]; 4204GridEntry? currentEntry = _selectedGridEntry; 4245internal void SelectGridEntry(GridEntry? entry, bool pageIn) 4313GridEntry? gridEntry = GetGridEntryFromRow(row); 4430GridEntry? oldSelectedGridEntry = _selectedGridEntry; 4512internal void SetExpand(GridEntry entry, bool value) 4545GridEntry? selectedEntry = _selectedGridEntry; 4548for (GridEntry? currentEntry = selectedEntry; currentEntry is not null; currentEntry = currentEntry.ParentGridEntry) 4653GridEntry? currentEntry = _selectedGridEntry; 4669internal bool CommitValue(GridEntry entry, object? value, bool closeDropDown = true) 4765GridEntry? currentEntry = _selectedGridEntry; 4799foreach (GridEntry gridEntry in _allGridEntries) 5084GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 5113private void UpdateHelpAttributes(GridEntry? oldEntry, GridEntry? newEntry) 5126GridEntry? temp = oldEntry; 5148private static void UpdateHelpAttributes(IHelpService helpService, GridEntry? entry, bool addAsF1) 5217GridEntry? gridEntry = GetGridEntryFromRow(_selectedRow); 5233private void UpdateResetCommand(GridEntry? gridEntry) 5299GridEntry? curEntry = GetGridEntryFromRow(mouseLoc.Y); 5436foreach (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 (16)
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); 486foreach (var topLevelGridEntry in topLevelGridEntries)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (6)
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 = []; 251foreach (var child in Children) 265List<GridEntry> categoryGridEntries = [];
System\Windows\Forms\Design\IWindowsFormsEditorService.cs (1)
26/// <see cref="PropertyGridView.PopupEditor(int)"/> calls <see cref="GridEntry.EditPropertyValue(PropertyGridView)"/>