2 writes to Properties
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (2)
36Properties = new PropertyStore(); 44Properties = new PropertyStore();
40 references to Properties
System.Windows.Forms (40)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (40)
71get => Properties.GetValueOrDefault(s_propAlignment, DataGridViewContentAlignment.NotSet); 102Properties.AddOrRemoveValue(s_propAlignment, value, defaultValue: DataGridViewContentAlignment.NotSet); 111get => Properties.GetValueOrDefault<Color>(s_propBackColor); 114Color previous = Properties.AddOrRemoveValue(s_propBackColor, value); 127get => Properties.TryGetValueOrNull(s_propDataSourceNullValue, out object? value) 133if (Properties.TryGetValueOrNull(s_propDataSourceNullValue, out object? oldValue) 139Properties.AddOrRemoveValue(s_propDataSourceNullValue, value, DBNull.Value); 147get => Properties.GetValueOrDefault<Font>(s_propFont); 150Font? previous = Properties.AddOrRemoveValue(s_propFont, value); 162get => Properties.TryGetValue(s_propForeColor, out Color color) ? color : Color.Empty; 165Color previous = Properties.AddOrRemoveValue(s_propForeColor, value); 180get => Properties.GetStringOrEmptyString(s_propFormat); 183if (Properties.AddOrRemoveString(s_propFormat, value)) 195get => Properties.GetValueOrDefault<IFormatProvider>(s_propFormatProvider) ?? Globalization.CultureInfo.CurrentCulture; 198IFormatProvider? originalValue = Properties.AddOrRemoveValue(s_propFormatProvider, value); 212if (!Properties.TryGetValueOrNull(s_propDataSourceNullValue, out object? value)) 223public bool IsFormatProviderDefault => !Properties.ContainsKey(s_propFormatProvider); 231if (!Properties.TryGetValueOrNull(s_propNullValue, out object? nullValue)) 245get => Properties.GetValueOrDefaultAllowNull<object?>(s_propNullValue, string.Empty); 255if (Properties.AddOrRemoveValue(s_propNullValue, value, defaultValue: string.Empty) != value) 265get => Properties.GetValueOrDefault<Padding>(s_propPadding); 298Properties.AddValue(s_propPadding, value); 311get => Properties.GetValueOrDefault<Color>(s_propSelectionBackColor); 314Color previous = Properties.AddOrRemoveValue(s_propSelectionBackColor, value); 325get => Properties.GetValueOrDefault<Color>(s_propSelectionForeColor); 328Color previous = Properties.AddOrRemoveValue(s_propSelectionForeColor, value); 344get => Properties.GetValueOrDefault<Color>(s_propSortGlyphColor); 347Color previous = Properties.AddOrRemoveValue(s_propSortGlyphColor, value); 359get => Properties.GetValueOrDefault<object?>(s_propTag); 360set => Properties.AddOrRemoveValue(s_propTag, value); 367get => Properties.GetValueOrDefault(s_propWrapMode, DataGridViewTriState.NotSet); 383Properties.AddOrRemoveValue(s_propWrapMode, value, defaultValue: DataGridViewTriState.NotSet); 547private bool ShouldSerializeBackColor() => Properties.ContainsKey(s_propBackColor); 549private bool ShouldSerializeFont() => Properties.ContainsKey(s_propFont); 551private bool ShouldSerializeForeColor() => Properties.ContainsKey(s_propForeColor); 553private bool ShouldSerializeFormatProvider() => Properties.ContainsKey(s_propFormatProvider); 555private bool ShouldSerializePadding() => Properties.ContainsKey(s_propPadding); 557private bool ShouldSerializeSelectionBackColor() => Properties.ContainsKey(s_propSelectionBackColor); 559private bool ShouldSerializeSelectionForeColor() => Properties.ContainsKey(s_propSelectionForeColor); 561private bool ShouldSerializeSortGlyphColor() => Properties.ContainsKey(s_propSortGlyphColor);