3 types derived from ConvertEventArgs
System.Windows.Forms (3)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellFormattingEventArgs.cs (1)
6
public class DataGridViewCellFormattingEventArgs :
ConvertEventArgs
, IDataGridViewCellEventArgs
System\Windows\Forms\Controls\DataGridView\DataGridViewCellParsingEventArgs.cs (1)
6
public class DataGridViewCellParsingEventArgs :
ConvertEventArgs
, IDataGridViewCellEventArgs
System\Windows\Forms\Controls\ListControl\ListControlConvertEventArgs.cs (1)
6
public class ListControlConvertEventArgs :
ConvertEventArgs
15 instantiations of ConvertEventArgs
System.Windows.Forms (4)
System\Windows\Forms\DataBinding\Binding.cs (4)
680
ConvertEventArgs e =
new
(value, type);
711
ConvertEventArgs e =
new
(value, type);
755
ConvertEventArgs e =
new
(value, type);
778
ConvertEventArgs e =
new
(value, type);
System.Windows.Forms.Tests (11)
System\Windows\Forms\BindingTests.cs (9)
441
yield return new object[] { false, new
ConvertEventArgs
(null, typeof(int)), null };
442
yield return new object[] { false, new
ConvertEventArgs
("1", null), "1" };
443
yield return new object[] { false, new
ConvertEventArgs
("1", typeof(string)), "1" };
444
yield return new object[] { false, new
ConvertEventArgs
("1", typeof(int)), 1 };
445
yield return new object[] { false, new
ConvertEventArgs
(1.1.ToString(CultureInfo.CurrentCulture), typeof(double)), 1.1 };
446
yield return new object[] { false, new
ConvertEventArgs
(DBNull.Value, typeof(int)), DBNull.Value };
449
yield return new object[] { false, new
ConvertEventArgs
(o, typeof(object)), o };
450
yield return new object[] { false, new
ConvertEventArgs
(o, typeof(int)), o };
453
yield return new object[] { true, new
ConvertEventArgs
("1", typeof(int)), "1" };
System\Windows\Forms\ConvertEventArgsTests.cs (2)
14
ConvertEventArgs e =
new
(value, desiredType);
24
ConvertEventArgs e =
new
("value", typeof(int))
13 references to ConvertEventArgs
System.Windows.Forms (7)
System\Windows\Forms\ConvertEventHandler.cs (1)
6
public delegate void ConvertEventHandler(object? sender,
ConvertEventArgs
e);
System\Windows\Forms\DataBinding\Binding.cs (6)
647
protected virtual void OnParse(
ConvertEventArgs
cevent)
660
protected virtual void OnFormat(
ConvertEventArgs
cevent)
680
ConvertEventArgs
e = new(value, type);
711
ConvertEventArgs
e = new(value, type);
755
ConvertEventArgs
e = new(value, type);
778
ConvertEventArgs
e = new(value, type);
System.Windows.Forms.Tests (6)
System\Windows\Forms\BindingTests.cs (4)
458
public void Binding_OnFormat_Invoke_CallsFormat(bool formattingEnabled,
ConvertEventArgs
eventArgs, object expectedValue)
503
public void Binding_OnParse_Invoke_CallsParse(bool formattingEnabled,
ConvertEventArgs
eventArgs, object expectedValue)
636
public new void OnFormat(
ConvertEventArgs
cevent) => base.OnFormat(cevent);
638
public new void OnParse(
ConvertEventArgs
cevent) => base.OnParse(cevent);
System\Windows\Forms\ConvertEventArgsTests.cs (2)
14
ConvertEventArgs
e = new(value, desiredType);
24
ConvertEventArgs
e = new("value", typeof(int))