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