5 writes to _selectedGridEntry
System.Windows.Forms (5)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
999
_selectedGridEntry
= null;
4023
_selectedGridEntry
= null;
4063
_selectedGridEntry
= GetGridEntryFromRow(_selectedRow);
4289
_selectedGridEntry
= gridEntry;
4385
_selectedGridEntry
= gridEntry;
78 references to _selectedGridEntry
System.Windows.Forms (78)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (77)
158
=>
_selectedGridEntry
is not null
159
&& (EditTextBox.Focused || !string.IsNullOrEmpty(
_selectedGridEntry
.GetPropertyTextValue()));
163
public bool CanCut => CanCopy &&
_selectedGridEntry
is not null &&
_selectedGridEntry
.IsTextEditable;
167
public bool CanPaste =>
_selectedGridEntry
is not null &&
_selectedGridEntry
.IsTextEditable;
481
get =>
_selectedGridEntry
;
998
_selectedGridEntry
?.Dispose();
1013
else if (
_selectedGridEntry
is not null)
1015
Clipboard.SetDataObject(
_selectedGridEntry
.GetPropertyTextValue());
1555
if (
_selectedGridEntry
is not null)
1562
return !
_selectedGridEntry
.Expandable;
2190
if (
_selectedGridEntry
is not null && GetRowFromGridEntry(
_selectedGridEntry
) != -1)
2192
_selectedGridEntry
.HasFocus = true;
2193
SelectGridEntry(
_selectedGridEntry
, pageIn: false);
2200
if (
_selectedGridEntry
is not null &&
_selectedGridEntry
.GetValueOwner() is not null)
2202
UpdateHelpAttributes(oldEntry: null,
_selectedGridEntry
);
2285
if (index < 0 ||
_selectedGridEntry
is null)
2325
_selectedGridEntry
?.OnValueReturnKey();
2413
if (
_selectedGridEntry
is not null && GetRowFromGridEntry(
_selectedGridEntry
) != -1)
2415
_selectedGridEntry
.HasFocus = true;
2573
SelectGridEntry(
_selectedGridEntry
, pageIn: false);
2644
if (
_selectedGridEntry
is not null)
2646
string currentTextValue =
_selectedGridEntry
.GetPropertyTextValue();
2920
if (
_selectedGridEntry
is not null
2921
&&
_selectedGridEntry
.Enumerable
2926
ProcessEnumUpAndDown(
_selectedGridEntry
, keyCode, closeDropDown: false);
3134
if (
_selectedGridEntry
is not null &&
_selectedGridEntry
.Enumerable && EditTextBox.Focused &&
_selectedGridEntry
.IsValueEditable)
3136
int index = GetCurrentValueIndex(
_selectedGridEntry
);
3140
object[] values =
_selectedGridEntry
.GetPropertyValueList();
3156
SelectGridEntry(
_selectedGridEntry
, pageIn: true);
3429
bool setSelectTime = sender !=
_selectedGridEntry
;
3472
if (
_selectedGridEntry
is not null)
3474
SelectGridEntry(
_selectedGridEntry
, true);
3488
if (
_selectedGridEntry
is not null)
3490
SelectGridEntry(
_selectedGridEntry
, true);
3609
bool selectionVisible =
_selectedGridEntry
is not null && _selectedRow >= 0 && _selectedRow <= _visibleRows;
3610
SelectGridEntry(
_selectedGridEntry
, selectionVisible);
3624
GridEntry? oldGridEntry =
_selectedGridEntry
;
3625
if (
_selectedGridEntry
is not null)
3904
else if (
_selectedGridEntry
is not null &&
_selectedGridEntry
.Expandable)
3906
SetExpand(
_selectedGridEntry
, !
_selectedGridEntry
.InternalExpanded);
3945
GridEntry? selectedEntry =
_selectedGridEntry
;
4022
UpdateHelpAttributes(
_selectedGridEntry
, newEntry: null);
4154
GridEntry? currentEntry =
_selectedGridEntry
;
4276
UpdateHelpAttributes(
_selectedGridEntry
, gridEntry);
4279
if (
_selectedGridEntry
is not null)
4281
_selectedGridEntry
.HasFocus = false;
4301
if (_selectedRow != row || (
_selectedGridEntry
is not null && !gridEntry.Equals(
_selectedGridEntry
)))
4383
GridEntry? oldSelectedGridEntry =
_selectedGridEntry
;
4389
if (
_selectedGridEntry
is not null)
4391
_selectedGridEntry
.HasFocus = FocusInside;
4409
if (
_selectedGridEntry
!= oldSelectedGridEntry)
4411
OwnerGrid.OnSelectedGridItemChanged(oldSelectedGridEntry,
_selectedGridEntry
);
4490
if (
_selectedGridEntry
is not null && IsAccessibilityObjectCreated)
4494
_selectedGridEntry
.AccessibilityObject.RaiseAutomationPropertyChangedEvent(
4501
GridEntry? selectedEntry =
_selectedGridEntry
;
4555
_selectedRow = GetRowFromGridEntry(
_selectedGridEntry
);
4609
GridEntry? currentEntry =
_selectedGridEntry
;
4611
if (
_selectedGridEntry
is null && _selectedRow != -1)
4706
entry =
_selectedGridEntry
!;
4721
GridEntry? currentEntry =
_selectedGridEntry
;
4723
if (
_selectedGridEntry
is null && _selectedRow != -1)
4773
if (
_selectedGridEntry
is null)
4779
SelectGridEntry(
_selectedGridEntry
, pageIn: true);
4952
SelectGridEntry(
_selectedGridEntry
, pageIn: true);
5025
SelectGridEntry(
_selectedGridEntry
, pageIn: true);
5066
UpdateHelpAttributes(
_selectedGridEntry
, newEntry: null);
5333
if (
_selectedGridEntry
is not null && (ModifierKeys & Keys.Shift) == 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridPositionData.cs (1)
16
_selectedItemTree = GetGridEntryHierarchy(gridView.
_selectedGridEntry
);