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