2 writes to Properties
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (2)
35Properties = new PropertyStore(); 43Properties = new PropertyStore();
37 references to Properties
System.Windows.Forms (37)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (37)
69get => Properties.GetValueOrDefault(s_propAlignment, DataGridViewContentAlignment.NotSet); 100Properties.AddOrRemoveValue(s_propAlignment, value, defaultValue: DataGridViewContentAlignment.NotSet); 109get => Properties.GetValueOrDefault<Color>(s_propBackColor); 112Color previous = Properties.AddOrRemoveValue(s_propBackColor, value); 125get => Properties.TryGetValueOrNull(s_propDataSourceNullValue, out object? value) 131if (Properties.TryGetValueOrNull(s_propDataSourceNullValue, out object? oldValue) 137Properties.AddOrRemoveValue(s_propDataSourceNullValue, value, DBNull.Value); 145get => Properties.GetValueOrDefault<Font>(s_propFont); 148Font? previous = Properties.AddOrRemoveValue(s_propFont, value); 160get => Properties.TryGetValue(s_propForeColor, out Color color) ? color : Color.Empty; 163Color previous = Properties.AddOrRemoveValue(s_propForeColor, value); 178get => Properties.GetStringOrEmptyString(s_propFormat); 181if (Properties.AddOrRemoveString(s_propFormat, value)) 193get => Properties.GetValueOrDefault<IFormatProvider>(s_propFormatProvider) ?? Globalization.CultureInfo.CurrentCulture; 196IFormatProvider? originalValue = Properties.AddOrRemoveValue(s_propFormatProvider, value); 210if (!Properties.TryGetValueOrNull(s_propDataSourceNullValue, out object? value)) 221public bool IsFormatProviderDefault => !Properties.ContainsKey(s_propFormatProvider); 229if (!Properties.TryGetValueOrNull(s_propNullValue, out object? nullValue)) 243get => Properties.GetValueOrDefaultAllowNull<object?>(s_propNullValue, string.Empty); 253if (Properties.AddOrRemoveValue(s_propNullValue, value, defaultValue: string.Empty) != value) 263get => Properties.GetValueOrDefault<Padding>(s_propPadding); 296Properties.AddValue(s_propPadding, value); 309get => Properties.GetValueOrDefault<Color>(s_propSelectionBackColor); 312Color previous = Properties.AddOrRemoveValue(s_propSelectionBackColor, value); 323get => Properties.GetValueOrDefault<Color>(s_propSelectionForeColor); 326Color previous = Properties.AddOrRemoveValue(s_propSelectionForeColor, value); 338get => Properties.GetValueOrDefault<object?>(s_propTag); 339set => Properties.AddOrRemoveValue(s_propTag, value); 346get => Properties.GetValueOrDefault(s_propWrapMode, DataGridViewTriState.NotSet); 362Properties.AddOrRemoveValue(s_propWrapMode, value, defaultValue: DataGridViewTriState.NotSet); 519private bool ShouldSerializeBackColor() => Properties.ContainsKey(s_propBackColor); 521private bool ShouldSerializeFont() => Properties.ContainsKey(s_propFont); 523private bool ShouldSerializeForeColor() => Properties.ContainsKey(s_propForeColor); 525private bool ShouldSerializeFormatProvider() => Properties.ContainsKey(s_propFormatProvider); 527private bool ShouldSerializePadding() => Properties.ContainsKey(s_propPadding); 529private bool ShouldSerializeSelectionBackColor() => Properties.ContainsKey(s_propSelectionBackColor); 531private bool ShouldSerializeSelectionForeColor() => Properties.ContainsKey(s_propSelectionForeColor);