4 types derived from GridEntry
System.Windows.Forms (4)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ArrayElementGridEntry.cs (1)
6
internal class ArrayElementGridEntry :
GridEntry
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (1)
12
internal sealed partial class CategoryGridEntry :
GridEntry
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
11
internal partial class PropertyDescriptorGridEntry :
GridEntry
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (1)
14
internal class SingleSelectRootGridEntry :
GridEntry
, IRootGridEntry
226 references to GridEntry
System.Windows.Forms (226)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (11)
48
private Dictionary<string,
GridEntry
>? _viewTabProperties;
67
private
GridEntry
? _defaultEntry;
68
private
GridEntry
? _rootEntry;
1144
set => _gridView.SelectedGridEntry = (
GridEntry
)value;
1864
foreach (
GridEntry
gridEntry in _viewTabProperties.Values)
2194
internal
GridEntry
? GetDefaultGridEntry() => _defaultEntry ??= _currentEntries?[0];
2958
else if (changedItem is
GridEntry
gridEntry && gridEntry.Enumerable)
2972
internal void OnSelectedGridItemChanged(
GridEntry
? oldEntry,
GridEntry
? newEntry)
4156
if (_viewTabProperties is not null && _viewTabProperties.TryGetValue(tabName, out
GridEntry
? value))
4165
_rootEntry =
GridEntry
.CreateRootGridEntry(
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ArrayElementGridEntry.cs (1)
10
public ArrayElementGridEntry(PropertyGrid ownerGrid,
GridEntry
parent, int index)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (4)
10
/// Virtual, collapsible parent <see cref="
GridEntry
"/>.
17
public CategoryGridEntry(PropertyGrid ownerGrid,
GridEntry
parent, string name, IEnumerable<
GridEntry
> children)
158
internal override bool SendNotification(
GridEntry
entry, Notify notification)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (40)
42
private
GridEntry
? _parent;
71
protected 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.
231
internal 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.
678
foreach (
GridEntry
child in Children)
685
public
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
"/>.
886
internal static
GridEntry
? CreateRootGridEntry(
947
GridEntry
[]? childProperties = GetChildEntries();
1037
foreach (
GridEntry
gridEntry in _children)
1123
internal bool EqualsIgnoreParent(
GridEntry
entry)
1140
if (obj is
GridEntry
entry && EqualsIgnoreParent(entry))
1167
/// Returns the index of a child <see cref="
GridEntry
"/>.
1169
internal 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
"/>.
1258
private
GridEntry
[]? GetChildEntries()
1269
GridEntry
[]? entries = null;
1342
entries = new
GridEntry
[objArray.Length];
1358
entries = new
GridEntry
[properties.Count];
1364
GridEntry
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.
2150
internal virtual bool SendNotification(
GridEntry
entry, Notify notification)
2180
foreach (
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)
12
internal class GridEntryAccessibleObject : AccessibleObject, IOwnedObject<
GridEntry
>
14
private readonly WeakReference<
GridEntry
> _owningGridEntry;
20
public GridEntryAccessibleObject(
GridEntry
owner)
29
=> PropertyGridView is not null && PropertyGridView.IsHandleCreated && this.TryGetOwnerAs(out
GridEntry
? owner)
37
if (!this.TryGetOwnerAs(out
GridEntry
? owner) || !owner.Expandable)
52
internal 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
64
public override string? Help => this.TryGetOwnerAs(out
GridEntry
? owner) ? owner.PropertyDescription : string.Empty;
68
public override string? Name => this.TryGetOwnerAs(out
GridEntry
? owner) ? owner.PropertyLabel : null;
73
this.TryGetOwnerAs(out
GridEntry
? owner) ? owner.OwnerGridView?.AccessibilityObject : null;
83
if (PropertyGridView is null || !PropertyGridView.IsHandleCreated || !this.TryGetOwnerAs(out
GridEntry
? owner))
143
get => this.TryGetOwnerAs(out
GridEntry
? owner) ? owner.GetPropertyTextValue() : null;
146
if (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,
209
this.TryGetOwnerAs(out
GridEntry
? owner)
230
GridEntry
? IOwnedObject<
GridEntry
>.Owner
231
=> _owningGridEntry.TryGetTarget(out
GridEntry
? target) ? target : null;
235
if (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))
283
if (PropertyGridView is null || !PropertyGridView.IsHandleCreated || !this.TryGetOwnerAs(out
GridEntry
? owner))
310
if (this.TryGetOwnerAs(out
GridEntry
? owner) && owner.Expandable && owner.Expanded)
318
if (this.TryGetOwnerAs(out
GridEntry
? owner) && owner.Expandable && !owner.Expanded)
329
if (this.TryGetOwnerAs(out
GridEntry
? owner) && owner.ParentGridEntry is { } parentGridEntry)
356
UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(this.TryGetOwnerAs(out
GridEntry
? owner) && owner.HasFocus),
363
internal override bool IsIAccessibleExSupported() => this.TryGetOwnerAs(out
GridEntry
? owner) && owner.Expandable;
375
if (this.TryGetOwnerAs(out
GridEntry
? owner) && owner.Expandable)
386
if (!this.TryGetOwnerAs(out
GridEntry
? owner) || owner.OwnerGrid is null || owner.OwnerGrid.SortedByCategories)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntryCollection.cs (3)
6
internal sealed class GridEntryCollection : NonNullCollection<
GridEntry
>, IDisposable
10
public GridEntryCollection(IEnumerable<
GridEntry
>? items = null, bool disposeItems = true)
26
foreach (
GridEntry
entry in this)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntryComparer.cs (3)
6
internal class GridEntryComparer : IComparer<
GridEntry
>
10
public int Compare(
GridEntry
? x,
GridEntry
? y)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ImmutablePropertyDescriptorGridEntry.cs (4)
24
GridEntry
parent,
41
GridEntry
? parentEntry = InstanceParentGridEntry;
101
private
GridEntry
? InstanceParentGridEntry
105
GridEntry
? 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)
16
GridEntry
parent,
181
internal override bool SendNotification(
GridEntry
entry, Notify notification)
195
protected 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)
16
GridEntry
parentEntry,
98
GridEntry
parentEntry)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (4)
38
GridEntry
parent,
77
GridEntry
entry = this;
357
protected virtual void NotifyParentsOfChanges(
GridEntry
? entry)
758
GridEntry
? parent = ParentGridEntry;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObject.cs (1)
222
foreach (
GridEntry
childEntry in owner.Children)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (91)
73
private
GridEntry
? _selectedGridEntry;
99
private
GridEntry
? _lastClickedEntry;
190
/// the selected row's <see cref="
GridEntry
"/>.
231
/// the selected row's <see cref="
GridEntry
"/>.
479
internal
GridEntry
? SelectedGridEntry
486
foreach (
GridEntry
entry in _allGridEntries)
496
GridEntry
? equivalentEntry = FindEquivalentGridEntry(new GridEntryCollection(new[] { value }, disposeItems: false));
591
internal Rectangle AccessibilityGetGridEntryBounds(
GridEntry
gridEntry)
622
internal int AccessibilityGetGridEntryChildID(
GridEntry
gridEntry)
644
internal void AccessibilitySelect(
GridEntry
entry)
664
GridEntry
entry = entries[i];
712
GridEntry
entry = entries[i];
795
GridEntry
? gridEntry = GetGridEntryFromRow(_selectedRow);
1067
private static int GetEntryLabelIndent(
GridEntry
gridEntry) => gridEntry.PropertyLabelIndent + 1;
1069
private int GetEntryLabelLength(Graphics g,
GridEntry
gridEntry)
1076
private bool IsEntryLabelLong(Graphics g,
GridEntry
gridEntry)
1095
GridEntry
? gridEntry = GetGridEntryFromRow(row);
1150
GridEntry
? gridEntry = GetGridEntryFromRow(row);
1176
GridEntry
.PaintValueFlags.PaintInPlace
1177
|
GridEntry
.PaintValueFlags.CheckShouldSerialize);
1197
GridEntry
? gridEntry = GetGridEntryFromRow(_selectedRow);
1237
GridEntry
? gridEntry = GetGridEntryFromRow(row);
1347
GridEntry
entry = _allGridEntries[i];
1439
var
gridEntry = GetGridEntryFromRow(_selectedRow);
1483
GridEntry
? gridEntry = GetGridEntryFromRow(row);
1512
GridEntry
? gridEntry = GetGridEntryFromRow(_selectedRow);
1573
GridEntry
? gridEntry = GetGridEntryFromRow(_selectedRow);
1582
private
GridEntry
? FindEquivalentGridEntry(GridEntryCollection? gridEntries)
1596
GridEntry
? targetEntry = null;
1680
var newEntries = new
GridEntry
[TotalProperties];
1695
private static int GetCurrentValueIndex(
GridEntry
gridEntry)
1777
private static GridEntryCollection? GetGridEntryHierarchy(
GridEntry
? gridEntry)
1787
var entries = new
GridEntry
[depth + 1];
1799
return new GridEntryCollection(new
GridEntry
[] { gridEntry }, disposeItems: false);
1802
private
GridEntry
? GetGridEntryFromRow(int row) => GetGridEntryFromOffset(row + GetScrollOffset());
1804
private
GridEntry
? GetGridEntryFromOffset(int offset)
1818
private static int GetGridEntriesFromOutline(GridEntryCollection? entries, int current, int target,
GridEntry
[] targetEntries)
1835
GridEntry
currentEntry = entries[i];
1911
internal int GetRowFromGridEntry(
GridEntry
? gridEntry)
1958
GridEntry
? gridEntry = (entry < 0) ? GetGridEntryFromRow(_selectedRow) : GetGridEntryFromOffset(entry);
1985
internal void InvalidateGridEntryValue(
GridEntry
ge)
2242
GridEntry
? gridEntry = GetGridEntryFromRow(_selectedRow);
2299
GridEntry
gridEntry = GetGridEntryFromRow(_selectedRow)!;
2307
e.State.HasFlag(DrawItemState.Selected) ?
GridEntry
.PaintValueFlags.DrawSelected : default,
2345
GridEntry
? gridEntry = GetGridEntryFromRow(_selectedRow);
2430
private bool ProcessEnumUpAndDown(
GridEntry
entry, Keys keyCode, bool closeDropDown = true)
2490
GridEntry
gridEntry = GetGridEntryFromRow(_selectedRow)!;
2515
GridEntry
? gridEntry = GetGridEntryFromRow(_selectedRow);
2683
GridEntry
? entry = GetGridEntryFromRow(_selectedRow);
2976
GridEntry
? gridEntry = GetGridEntryFromRow(pos.Y);
3049
GridEntry
? gridItem = GetGridEntryFromRow(rowMoveCurrent);
3370
GridEntry
gridEntry = (
GridEntry
)s!;
3384
GridEntry
gridEntry = (
GridEntry
)s!;
3398
_lastClickedEntry = (
GridEntry
?)sender;
3404
var
gridEntry = (
GridEntry
)sender!;
3428
_lastClickedEntry = (
GridEntry
?)sender;
3504
var
parent = (
GridEntry
)s;
3508
var entries = new
GridEntry
[_allGridEntries!.Count];
3531
var newEntries = new
GridEntry
[newArraySize];
3624
GridEntry
? oldGridEntry = _selectedGridEntry;
3661
GridEntry
? gridEntry = GetGridEntryFromRow(row);
3928
internal void RecursivelyExpand(
GridEntry
? gridEntry, bool initialize, bool expand, int maxExpands)
3945
GridEntry
? selectedEntry = _selectedGridEntry;
3963
foreach (
GridEntry
entry in TopLevelGridEntries)
3981
GridEntry
? gridEntry = null;
4104
GridEntry
? gridEntry = GetGridEntryFromRow(_selectedRow);
4142
GridEntry
entry = entries[i];
4154
GridEntry
? currentEntry = _selectedGridEntry;
4195
internal void SelectGridEntry(
GridEntry
? entry, bool pageIn)
4263
GridEntry
? gridEntry = GetGridEntryFromRow(row);
4383
GridEntry
? oldSelectedGridEntry = _selectedGridEntry;
4468
internal void SetExpand(
GridEntry
entry, bool value)
4501
GridEntry
? selectedEntry = _selectedGridEntry;
4504
for (
GridEntry
? currentEntry = selectedEntry; currentEntry is not null; currentEntry = currentEntry.ParentGridEntry)
4609
GridEntry
? currentEntry = _selectedGridEntry;
4625
internal bool CommitValue(
GridEntry
entry, object? value, bool closeDropDown = true)
4721
GridEntry
? currentEntry = _selectedGridEntry;
4755
foreach (
GridEntry
gridEntry in _allGridEntries)
5040
GridEntry
? gridEntry = GetGridEntryFromRow(_selectedRow);
5069
private void UpdateHelpAttributes(
GridEntry
? oldEntry,
GridEntry
? newEntry)
5082
GridEntry
? temp = oldEntry;
5104
private static void UpdateHelpAttributes(IHelpService helpService,
GridEntry
? entry, bool addAsF1)
5173
GridEntry
? gridEntry = GetGridEntryFromRow(_selectedRow);
5189
private void UpdateResetCommand(
GridEntry
? gridEntry)
5258
GridEntry
? curEntry = GetGridEntryFromRow(mouseLoc.Y);
5395
foreach (
GridEntry
entry in TopLevelGridEntries)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.DropDownHolderAccessibleObject.cs (1)
30
GridEntry
? selectedEntry = gridView?.SelectedGridEntry;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridPositionData.cs (2)
21
public
GridEntry
? Restore(PropertyGridView gridView)
24
GridEntry
? entry = gridView.FindEquivalentGridEntry(_selectedItemTree);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (15)
101
public AccessibleObject? Next(
GridEntry
current)
109
GridEntry
? nextEntry = owner.GetGridEntryFromRow(++row);
149
internal static AccessibleObject? GetPreviousGridEntry(
GridEntry
currentGridEntry, GridEntryCollection? gridEntryCollection, out bool currentGridEntryFound)
158
GridEntry
? previousGridEntry = null;
160
foreach (
GridEntry
gridEntry in gridEntryCollection)
206
internal static AccessibleObject? GetNextGridEntry(
GridEntry
currentGridEntry, GridEntryCollection? gridEntryCollection, out bool currentGridEntryFound)
215
foreach (
GridEntry
gridEntry in gridEntryCollection)
262
var targetEntries = new
GridEntry
[1];
293
var targetEntries = new
GridEntry
[1];
323
GridEntry
? nextEntry;
338
public AccessibleObject? Previous(
GridEntry
current)
346
GridEntry
? previousEntry = owner.GetGridEntryFromRow(--row);
364
GridEntry
? previousEntry;
411
GridEntry
? gridEntry = owner.SelectedGridEntry;
438
GridEntry
? 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
17
private
GridEntry
? _defaultEntry;
108
internal sealed override
GridEntry
? DefaultChild
250
Dictionary<string, List<
GridEntry
>> categories = [];
265
List<
GridEntry
> categoryGridEntries = [];
System\Windows\Forms\Design\IWindowsFormsEditorService.cs (1)
26
/// <see cref="PropertyGridView.PopupEditor(int)"/> calls <see cref="
GridEntry
.EditPropertyValue(PropertyGridView)"/>