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