1 write to Properties
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
73
Properties
= new PropertyStore();
131 references to Properties
System.Windows.Forms (131)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (8)
40
get =>
Properties
.GetValueOrDefault(s_propButtonCellState, ButtonState.Normal);
48
Properties
.AddOrRemoveValue(s_propButtonCellState, value, defaultValue: ButtonState.Normal);
60
get =>
Properties
.GetValueOrDefault(s_propButtonCellFlatStyle, FlatStyle.Standard);
66
Properties
.AddOrRemoveValue(s_propButtonCellFlatStyle, value, defaultValue: FlatStyle.Standard);
79
Properties
.AddValue(s_propButtonCellFlatStyle, value);
91
get =>
Properties
.GetValueOrDefault<bool>(s_propButtonCellUseColumnTextForButtonValue);
96
Properties
.AddValue(s_propButtonCellUseColumnTextForButtonValue, value);
108
Properties
.AddValue(s_propButtonCellUseColumnTextForButtonValue, value);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (27)
89
if (!
Properties
.TryGetValue(s_propCellAccessibilityObject, out AccessibleObject? result))
92
Properties
.AddValue(s_propCellAccessibilityObject, result);
116
get =>
Properties
.GetValueOrDefault<ContextMenuStrip>(s_propCellContextMenuStrip);
119
ContextMenuStrip? oldValue =
Properties
.AddOrRemoveValue(s_propCellContextMenuStrip, value);
208
get =>
Properties
.GetStringOrEmptyString(s_propCellErrorText);
211
if (
Properties
.AddOrRemoveString(s_propCellErrorText, value))
277
private bool HasErrorText =>
Properties
.ContainsKey(s_propCellErrorText);
280
public bool HasStyle =>
Properties
.ContainsKey(s_propCellStyle);
282
internal bool HasToolTipText =>
Properties
.ContainsKey(s_propCellToolTipText);
284
internal bool HasValue =>
Properties
.ContainsKey(s_propCellValue);
286
private protected virtual bool HasValueType =>
Properties
.ContainsKey(s_propCellValueType);
383
internal bool IsAccessibilityObjectCreated =>
Properties
.ContainsKey(s_propCellAccessibilityObject);
622
if (!
Properties
.TryGetValue(s_propCellStyle, out DataGridViewCellStyle? dataGridViewCellStyle))
626
Properties
.AddValue(s_propCellStyle, dataGridViewCellStyle);
641
Properties
.AddOrRemoveValue(s_propCellStyle, value);
658
get =>
Properties
.GetValueOrDefault<object?>(s_propCellTag);
659
set =>
Properties
.AddOrRemoveValue(s_propCellTag, value);
678
get =>
Properties
.GetStringOrEmptyString(s_propCellToolTipText);
681
if (
Properties
.AddOrRemoveString(s_propCellToolTipText, value))
708
if (!
Properties
.TryGetValue(s_propCellValueType, out Type? cellValueType) && OwningColumn is not null)
715
set =>
Properties
.AddOrRemoveValue(s_propCellValueType, value);
1542
string? objErrorText =
Properties
.GetValueOrDefault<string>(s_propCellErrorText);
2432
return
Properties
.GetValueOrDefault<object>(s_propCellValue);
2443
return
Properties
.GetValueOrDefault<object>(s_propCellValue);
3874
Properties
.RemoveValue(s_propCellAccessibilityObject);
3895
Properties
.AddOrRemoveValue(s_propCellValue, value);
3932
Properties
.AddOrRemoveValue(s_propCellValue, value);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (15)
182
get =>
Properties
.GetValueOrDefault(s_propButtonCellState, ButtonState.Normal);
190
Properties
.AddOrRemoveValue(s_propButtonCellState, value, defaultValue: ButtonState.Normal);
209
get =>
Properties
.GetValueOrDefault<object?>(s_propFalseValue);
212
Properties
.AddOrRemoveValue(s_propFalseValue, value);
229
set =>
Properties
.AddOrRemoveValue(s_propFalseValue, value);
235
get =>
Properties
.GetValueOrDefault(s_propFlatStyle, FlatStyle.Standard);
239
FlatStyle previous =
Properties
.AddOrRemoveValue(s_propFlatStyle, value, defaultValue: FlatStyle.Standard);
254
Properties
.AddOrRemoveValue(s_propFlatStyle, value, defaultValue: FlatStyle.Standard);
264
get =>
Properties
.GetValueOrDefault<object?>(s_propIndeterminateValue);
267
Properties
.AddOrRemoveValue(s_propIndeterminateValue, value);
284
set =>
Properties
.AddOrRemoveValue(s_propIndeterminateValue, value);
362
get =>
Properties
.GetValueOrDefault<object?>(s_propTrueValue);
365
if (value is not null ||
Properties
.ContainsKey(s_propTrueValue))
367
Properties
.AddOrRemoveValue(s_propTrueValue, value);
385
set =>
Properties
.AddOrRemoveValue(s_propTrueValue, value);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (3)
58
internal bool ContainsLocalValue =>
Properties
.ContainsKey(s_propCellValue);
708
return
Properties
.TryGetValueOrNull(s_propCellValue, out object? value) ? value : OwningColumn?.Name;
1193
Properties
.AddValue(s_propCellValue, value);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (32)
127
set =>
Properties
.AddOrRemoveValue(s_propComboBoxCellDataManager, value);
132
get =>
Properties
.GetValueOrDefault<object>(s_propComboBoxCellDataSource);
141
object? originalValue =
Properties
.AddOrRemoveValue(s_propComboBoxCellDataSource, value);
199
get =>
Properties
.GetStringOrEmptyString(s_propComboBoxCellDisplayMember);
220
Properties
.AddOrRemoveString(s_propComboBoxCellDisplayMember, value);
226
get =>
Properties
.GetValueOrDefault<PropertyDescriptor?>(s_propComboBoxCellDisplayMemberProp);
227
set =>
Properties
.AddOrRemoveValue(s_propComboBoxCellDisplayMemberProp, value);
233
get =>
Properties
.GetValueOrDefault(s_propComboBoxCellDisplayStyle, DataGridViewComboBoxDisplayStyle.DropDownButton);
238
DataGridViewComboBoxDisplayStyle originalValue =
Properties
.AddOrRemoveValue(
262
Properties
.AddOrRemoveValue(s_propComboBoxCellDisplayStyle, value, defaultValue: DataGridViewComboBoxDisplayStyle.DropDownButton);
269
get =>
Properties
.GetValueOrDefault<bool>(s_propComboBoxCellDisplayStyleForCurrentCellOnly);
272
bool originalValue =
Properties
.AddOrRemoveValue(s_propComboBoxCellDisplayStyleForCurrentCellOnly, value);
289
set =>
Properties
.AddOrRemoveValue(s_propComboBoxCellDisplayStyleForCurrentCellOnly, value);
318
get =>
Properties
.GetValueOrDefault(s_propComboBoxCellDropDownWidth, 1);
326
Properties
.AddOrRemoveValue(s_propComboBoxCellDropDownWidth, value, defaultValue: 1);
336
get =>
Properties
.GetValueOrDefault<DataGridViewComboBoxEditingControl?>(s_propComboBoxCellEditingComboBox);
337
set =>
Properties
.AddOrRemoveValue(s_propComboBoxCellEditingComboBox, value);
346
get =>
Properties
.GetValueOrDefault(s_propComboBoxCellFlatStyle, FlatStyle.Standard);
351
FlatStyle originalValue =
Properties
.AddOrRemoveValue(s_propComboBoxCellFlatStyle, value, defaultValue: FlatStyle.Standard);
364
Properties
.AddOrRemoveValue(s_propComboBoxCellFlatStyle, value, defaultValue: FlatStyle.Standard);
370
internal bool HasItems =>
Properties
.ContainsKey(s_propComboBoxCellItems);
378
get =>
Properties
.GetValueOrDefault(s_propComboBoxCellMaxDropDownItems, DefaultMaxDropDownItems);
389
Properties
.AddOrRemoveValue(s_propComboBoxCellMaxDropDownItems, value, defaultValue: DefaultMaxDropDownItems);
447
get =>
Properties
.GetValueOrDefault<DataGridViewComboBoxColumn>(s_propComboBoxCellColumnTemplate);
448
set =>
Properties
.AddOrRemoveValue(s_propComboBoxCellColumnTemplate, value);
455
get =>
Properties
.GetStringOrEmptyString(s_propComboBoxCellValueMember);
476
Properties
.AddOrRemoveString(s_propComboBoxCellValueMember, value);
482
get =>
Properties
.GetValueOrDefault<PropertyDescriptor?>(s_propComboBoxCellValueMemberProp);
483
set =>
Properties
.AddOrRemoveValue(s_propComboBoxCellValueMemberProp, value);
792
CurrencyManager? cm =
Properties
.GetValueOrDefault<CurrencyManager?>(s_propComboBoxCellDataManager);
1086
if (!
Properties
.TryGetValue(s_propComboBoxCellItems, out ObjectCollection? items))
1089
Properties
.AddValue(s_propComboBoxCellItems, items);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.DataGridViewComboBoxCellAccessibleObject.cs (1)
45
if (Owner.
Properties
.TryGetValue(s_propComboBoxCellEditingComboBox, out DataGridViewComboBoxEditingControl? comboBox)
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (8)
31
get =>
Properties
.GetValueOrDefault(s_propButtonState, ButtonState.Normal);
32
private set =>
Properties
.AddOrRemoveValue(s_propButtonState, value, defaultValue: ButtonState.Normal);
80
get =>
Properties
.GetValueOrDefault<Bitmap?>(s_propFlipXPThemesBitmap);
81
set =>
Properties
.AddOrRemoveValue(s_propFlipXPThemesBitmap, value);
114
private protected override bool HasValueType =>
Properties
.ContainsKey(s_propValueType);
157
get =>
Properties
.GetValueOrDefault<Type?>(s_propValueType, s_defaultValueType);
158
set =>
Properties
.AddOrRemoveValue(s_propValueType, value);
425
return
Properties
.GetValueOrDefault<object>(s_propCellValue);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (5)
61
get =>
Properties
.GetStringOrEmptyString(s_propImageCellDescription);
62
set =>
Properties
.AddOrRemoveString(s_propImageCellDescription, value);
98
get =>
Properties
.GetValueOrDefault(s_propImageCellLayout, DataGridViewImageCellLayout.Normal);
105
Properties
.AddOrRemoveValue(s_propImageCellLayout, value, defaultValue: DataGridViewImageCellLayout.Normal);
116
Properties
.AddOrRemoveValue(s_propImageCellLayout, value, defaultValue: DataGridViewImageCellLayout.Normal);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (26)
47
if (
Properties
.TryGetValue(s_propLinkCellActiveLinkColor, out Color color))
65
Properties
.AddValue(s_propLinkCellActiveLinkColor, value);
87
Properties
.AddValue(s_propLinkCellActiveLinkColor, value);
117
get =>
Properties
.GetValueOrDefault(s_propLinkCellLinkBehavior, LinkBehavior.SystemDefault);
123
Properties
.AddOrRemoveValue(s_propLinkCellLinkBehavior, value, defaultValue: LinkBehavior.SystemDefault);
146
Properties
.AddOrRemoveValue(s_propLinkCellLinkBehavior, value, defaultValue: LinkBehavior.SystemDefault);
155
if (
Properties
.TryGetValue(s_propLinkCellLinkColor, out Color color))
173
Properties
.AddValue(s_propLinkCellLinkColor, value);
195
Properties
.AddValue(s_propLinkCellLinkColor, value);
206
get =>
Properties
.GetValueOrDefault(s_propLinkCellLinkState, LinkState.Normal);
207
set =>
Properties
.AddOrRemoveValue(s_propLinkCellLinkState, value, defaultValue: LinkState.Normal);
241
get =>
Properties
.GetValueOrDefault(s_propLinkCellTrackVisitedState, true);
249
Properties
.AddOrRemoveValue(s_propLinkCellTrackVisitedState, value, defaultValue: true);
266
set =>
Properties
.AddOrRemoveValue(s_propLinkCellTrackVisitedState, value, defaultValue: true);
272
get =>
Properties
.GetValueOrDefault<bool>(s_propLinkCellUseColumnTextForLinkValue);
277
Properties
.AddValue(s_propLinkCellUseColumnTextForLinkValue, value);
285
set =>
Properties
.AddOrRemoveValue(s_propLinkCellUseColumnTextForLinkValue, value, defaultValue: false);
292
if (
Properties
.TryGetValue(s_propLinkCellVisitedLinkColor, out Color color))
313
Properties
.AddValue(s_propLinkCellVisitedLinkColor, value);
334
Properties
.AddValue(s_propLinkCellVisitedLinkColor, value);
378
if (
Properties
.ContainsKey(s_propLinkCellActiveLinkColor))
383
if (
Properties
.ContainsKey(s_propLinkCellUseColumnTextForLinkValue))
388
if (
Properties
.ContainsKey(s_propLinkCellLinkBehavior))
393
if (
Properties
.ContainsKey(s_propLinkCellLinkColor))
398
if (
Properties
.ContainsKey(s_propLinkCellTrackVisitedState))
403
if (
Properties
.ContainsKey(s_propLinkCellVisitedLinkColor))
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (2)
570
return
Properties
.GetValueOrDefault<object?>(s_propCellValue);
1060
Properties
.AddOrRemoveValue(s_propCellValue, value);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (4)
51
get =>
Properties
.GetValueOrDefault<DataGridViewTextBoxEditingControl?>(s_propTextBoxCellEditingTextBox);
52
set =>
Properties
.AddOrRemoveValue(s_propTextBoxCellEditingTextBox, value);
67
get =>
Properties
.GetValueOrDefault(s_propTextBoxCellMaxInputLength, MaxInputLengthDefault);
72
Properties
.AddOrRemoveValue(s_propTextBoxCellMaxInputLength, value, defaultValue: MaxInputLengthDefault);