11 instantiations of PaintValueEventArgs
System.Windows.Forms (2)
System\Drawing\Design\UITypeEditor.cs (1)
129=> PaintValue(new PaintValueEventArgs(null, value, canvas, rectangle));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1853UITypeEditor?.PaintValue(new PaintValueEventArgs(this, value, g, rectPaint));
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ImageIndexEditor.cs (1)
133ImageEditor.PaintValue(new PaintValueEventArgs(e.Context, image, e.Graphics, e.Bounds));
System\Windows\Forms\Design\ImageListImageEditor.cs (1)
118e = new PaintValueEventArgs(e.Context, image.Image, e.Graphics, e.Bounds);
System.Windows.Forms.Design.Tests (4)
System\Drawing\Design\FontNameEditorTests.cs (1)
87e = new PaintValueEventArgs(_typeDescriptorContext, fontName, g, Rectangle.Empty);
System\Drawing\Design\ImageEditorTests.cs (2)
170PaintValueEventArgs e = new(null, otherImage, graphics, new Rectangle(1, 2, 3, 4)); 187PaintValueEventArgs e = new(null, value, graphics, new Rectangle(1, 2, 3, 4));
System\Windows\Forms\Design\ImageIndexEditorTests.cs (1)
37PaintValueEventArgs paintValueEventArgs = new(_context, value, graphics, new Rectangle(0, 0, 10, 10));
System.Windows.Forms.Tests (3)
System\Drawing\Design\PaintValueEventArgsTests.cs (2)
25PaintValueEventArgs e = new(context, value, graphics, bounds); 35AssertExtensions.Throws<ArgumentNullException>("graphics", () => new PaintValueEventArgs(null, new object(), null, Rectangle.Empty));
System\Drawing\Design\UITypeEditorTests.cs (1)
103yield return new object[] { new PaintValueEventArgs(null, null, graphics, Rectangle.Empty) };
19 references to PaintValueEventArgs
System.Windows.Forms (4)
System\Drawing\Design\PaintValueEventArgs.cs (1)
9/// Object passed as an argument to <see cref="UITypeEditor.PaintValue(PaintValueEventArgs)"/> containing
System\Drawing\Design\UITypeEditor.cs (2)
134/// <param name="e">A <see cref="PaintValueEventArgs" /> that indicates what to paint and where to paint it. </param> 135public virtual void PaintValue(PaintValueEventArgs e) { }
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedUITypeEditor.cs (1)
42public override void PaintValue(PaintValueEventArgs e)
System.Windows.Forms.Design (7)
System\Drawing\Design\ColorEditor.cs (1)
47public override void PaintValue(PaintValueEventArgs e)
System\Drawing\Design\FontNameEditor.cs (2)
30public override void PaintValue(PaintValueEventArgs e) 69private static void DrawFontSample(PaintValueEventArgs e, FontFamily fontFamily, FontStyle fontStyle)
System\Drawing\Design\IconEditor.cs (1)
110public override void PaintValue(PaintValueEventArgs e)
System\Drawing\Design\ImageEditor.cs (1)
172public override void PaintValue(PaintValueEventArgs e)
System\Windows\Forms\Design\ImageIndexEditor.cs (1)
113public override void PaintValue(PaintValueEventArgs e)
System\Windows\Forms\Design\ImageListImageEditor.cs (1)
114public override void PaintValue(PaintValueEventArgs e)
System.Windows.Forms.Design.Tests (4)
System\Drawing\Design\FontNameEditorTests.cs (1)
83PaintValueEventArgs e;
System\Drawing\Design\ImageEditorTests.cs (2)
170PaintValueEventArgs e = new(null, otherImage, graphics, new Rectangle(1, 2, 3, 4)); 187PaintValueEventArgs e = new(null, value, graphics, new Rectangle(1, 2, 3, 4));
System\Windows\Forms\Design\ImageIndexEditorTests.cs (1)
37PaintValueEventArgs paintValueEventArgs = new(_context, value, graphics, new Rectangle(0, 0, 10, 10));
System.Windows.Forms.Tests (4)
System\Drawing\Design\PaintValueEventArgsTests.cs (1)
25PaintValueEventArgs e = new(context, value, graphics, bounds);
System\Drawing\Design\UITypeEditorTests.cs (3)
108public void UITypeEditor_PaintValue_Invoke_Nop(PaintValueEventArgs e) 130.Setup(e => e.PaintValue(It.IsAny<PaintValueEventArgs>())) 138mockEditor.Verify(e => e.PaintValue(It.IsAny<PaintValueEventArgs>()), Times.Once());