5 writes to _selectedGridEntry
System.Windows.Forms (5)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
999
_selectedGridEntry
= null;
4038
_selectedGridEntry
= null;
4078
_selectedGridEntry
= GetGridEntryFromRow(_selectedRow);
4301
_selectedGridEntry
= gridEntry;
4397
_selectedGridEntry
= gridEntry;
76 references to _selectedGridEntry
System.Windows.Forms (76)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (75)
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;
2583
SelectGridEntry(
_selectedGridEntry
, pageIn: false);
2659
if (
_selectedGridEntry
is not null)
2661
string currentTextValue =
_selectedGridEntry
.GetPropertyTextValue();
2935
if (
_selectedGridEntry
is not null
2936
&&
_selectedGridEntry
.Enumerable
2941
ProcessEnumUpAndDown(
_selectedGridEntry
, keyCode, closeDropDown: false);
3149
if (
_selectedGridEntry
is not null &&
_selectedGridEntry
.Enumerable && EditTextBox.Focused &&
_selectedGridEntry
.IsValueEditable)
3151
int index = GetCurrentValueIndex(
_selectedGridEntry
);
3155
object[] values =
_selectedGridEntry
.GetPropertyValueList();
3171
SelectGridEntry(
_selectedGridEntry
, pageIn: true);
3444
bool setSelectTime = sender !=
_selectedGridEntry
;
3487
if (
_selectedGridEntry
is not null)
3489
SelectGridEntry(
_selectedGridEntry
, true);
3503
if (
_selectedGridEntry
is not null)
3505
SelectGridEntry(
_selectedGridEntry
, true);
3624
bool selectionVisible =
_selectedGridEntry
is not null && _selectedRow >= 0 && _selectedRow <= _visibleRows;
3625
SelectGridEntry(
_selectedGridEntry
, selectionVisible);
3639
GridEntry? oldGridEntry =
_selectedGridEntry
;
3640
if (
_selectedGridEntry
is not null)
3919
else if (
_selectedGridEntry
is not null &&
_selectedGridEntry
.Expandable)
3921
SetExpand(
_selectedGridEntry
, !
_selectedGridEntry
.InternalExpanded);
3960
GridEntry? selectedEntry =
_selectedGridEntry
;
4037
UpdateHelpAttributes(
_selectedGridEntry
, newEntry: null);
4169
GridEntry? currentEntry =
_selectedGridEntry
;
4291
UpdateHelpAttributes(
_selectedGridEntry
, gridEntry);
4294
_selectedGridEntry
?.HasFocus = false;
4313
if (_selectedRow != row || (
_selectedGridEntry
is not null && !gridEntry.Equals(
_selectedGridEntry
)))
4395
GridEntry? oldSelectedGridEntry =
_selectedGridEntry
;
4401
_selectedGridEntry
?.HasFocus = FocusInside;
4418
if (
_selectedGridEntry
!= oldSelectedGridEntry)
4420
OwnerGrid.OnSelectedGridItemChanged(oldSelectedGridEntry,
_selectedGridEntry
);
4499
if (
_selectedGridEntry
is not null && IsAccessibilityObjectCreated)
4503
_selectedGridEntry
.AccessibilityObject.RaiseAutomationPropertyChangedEvent(
4510
GridEntry? selectedEntry =
_selectedGridEntry
;
4564
_selectedRow = GetRowFromGridEntry(
_selectedGridEntry
);
4618
GridEntry? currentEntry =
_selectedGridEntry
;
4620
if (
_selectedGridEntry
is null && _selectedRow != -1)
4715
entry =
_selectedGridEntry
!;
4730
GridEntry? currentEntry =
_selectedGridEntry
;
4732
if (
_selectedGridEntry
is null && _selectedRow != -1)
4782
if (
_selectedGridEntry
is null)
4788
SelectGridEntry(
_selectedGridEntry
, pageIn: true);
4961
SelectGridEntry(
_selectedGridEntry
, pageIn: true);
5034
SelectGridEntry(
_selectedGridEntry
, pageIn: true);
5075
UpdateHelpAttributes(
_selectedGridEntry
, newEntry: null);
5339
if (
_selectedGridEntry
is not null && (ModifierKeys & Keys.Shift) == 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridPositionData.cs (1)
16
_selectedItemTree = GetGridEntryHierarchy(gridView.
_selectedGridEntry
);