15 references to Formatter
System.Windows.Forms (15)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
1616formattedValue = Formatter.FormatObject( 3731return Formatter.ParseObject( 3739cellStyle.IsDataSourceNullValueDefault ? Formatter.GetDefaultDataSourceNullValue(valueType) : cellStyle.DataSourceNullValue);
System\Windows\Forms\Controls\ListControl\ListControl.cs (1)
555return (string?)Formatter.FormatObject(
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (2)
2333parseRetVal = Formatter.ParseObject( 2341Formatter.GetDefaultDataSourceNullValue(_validatingType));
System\Windows\Forms\DataBinding\Binding.cs (9)
39private object? _dsNullValue = Formatter.GetDefaultDataSourceNullValue(null); 356if (IsBinding && Formatter.IsNullData(_bindToObject.GetValue(), _dsNullValue)) 388if (Formatter.IsNullData(dsValue, oldValue)) 395if (Formatter.IsNullData(dsValue, value)) 580_state.HasFlag(BindingStates.DataSourceNullValueSet) ? _dsNullValue : Formatter.GetDefaultDataSourceNullValue(type); 698return Formatter.ParseObject( 772return Formatter.FormatObject(value, type, fieldInfoConverter, _propInfoConverter, _formatString, _formatInfo, _nullValue, _dsNullValue); 1047bool isNull = value is null || Formatter.IsNullData(value, DataSourceNullValue); 1082_state.HasFlag(BindingStates.DataSourceNullValueSet) && _dsNullValue != Formatter.GetDefaultDataSourceNullValue(null);