8 overrides of FormattedValueType
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
84
public override Type
FormattedValueType
=>
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
259
public override Type
FormattedValueType
=> ThreeState ? s_defaultCheckStateType : s_defaultBooleanType;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
368
public override Type
FormattedValueType
=> s_defaultFormattedValueType;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
84
public override Type
FormattedValueType
=> s_defaultFormattedValueType;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
80
public override Type
FormattedValueType
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
112
public override Type?
FormattedValueType
=> s_defaultFormattedValueType;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
55
public override Type
FormattedValueType
System.Windows.Forms.Tests (1)
System\Windows\Forms\DataGridViewCellTests.cs (1)
6224
public override Type
FormattedValueType
=> FormattedValueTypeResult;
37 references to FormattedValueType
System.Windows.Forms (18)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
25295
|| (dataGridViewCurrentCell.
FormattedValueType
is not null && dataGridViewCurrentCell.
FormattedValueType
.IsAssignableFrom(nullValue.GetType())))
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (16)
242
if (
FormattedValueType
is not null)
246
formattedValueTypeConverter = DataGridView.GetCachedTypeConverter(
FormattedValueType
);
250
formattedValueTypeConverter = TypeDescriptor.GetConverter(
FormattedValueType
);
1603
FormattedValueType
,
1611
FormattedValueType
is not null &&
1612
(formattedValue is null || !
FormattedValueType
.IsAssignableFrom(formattedValue.GetType())))
1618
FormattedValueType
,
1645
(formattedValue is null ||
FormattedValueType
is null || !
FormattedValueType
.IsAssignableFrom(formattedValue.GetType())))
1649
FormattedValueType
is not null &&
1650
!typeof(ValueType).IsAssignableFrom(
FormattedValueType
))
1657
if (
FormattedValueType
is null)
2723
if (
FormattedValueType
== s_stringType)
3719
if (
FormattedValueType
is null)
3730
!
FormattedValueType
.IsAssignableFrom(formattedValue.GetType()))
3738
FormattedValueType
,
System.Windows.Forms.Tests (19)
System\Windows\Forms\DataGridViewCellTests.cs (15)
32
Assert.Null(cell.
FormattedValueType
);
2819
Assert.Equal(value, cell.
FormattedValueType
);
2824
Assert.Equal(value, cell.
FormattedValueType
);
2837
Assert.Equal(value, cell.
FormattedValueType
);
2842
Assert.Equal(value, cell.
FormattedValueType
);
2855
Assert.Equal(value, cell.
FormattedValueType
);
2860
Assert.Equal(value, cell.
FormattedValueType
);
2876
Assert.Equal(value, cell.
FormattedValueType
);
2881
Assert.Equal(value, cell.
FormattedValueType
);
2945
Assert.Equal(value, cell.
FormattedValueType
);
2951
Assert.Equal(value, cell.
FormattedValueType
);
2971
Assert.Equal(value, cell.
FormattedValueType
);
2977
Assert.Equal(value, cell.
FormattedValueType
);
3347
Assert.Equal(typeof(int), cell.
FormattedValueType
);
3384
Assert.Null(cell.
FormattedValueType
);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (4)
1619
Assert.Equal(typeof(string), cell.
FormattedValueType
);
1625
Assert.Equal(typeof(string), cell.
FormattedValueType
);
1647
Assert.Equal(typeof(string), cell.
FormattedValueType
);
1653
Assert.Equal(typeof(string), cell.
FormattedValueType
);