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