60 writes to Clip
System.Drawing.Common.Tests (34)
mono\System.Drawing\GraphicsTests.cs (25)
152g.Clip = new Region(new Rectangle(50, 40, 210, 220)); 178g.Clip = new Region(new RectangleF(10, 10, 100, 100)); 205g.Clip = new Region(new RectangleF(260, 30, 60, 80)); 222g.Clip = new Region(new RectangleF(260, 30, 60, 80)); 292g.Clip = new Region(new Rectangle(0, 0, 100, 100)); 305g.Clip = new Region(new Rectangle(1, 2, 20, 25)); 361Graphics.Clip = new Region(new Rectangle(0, 0, width, height)); 456g.Clip = new Region(new Rectangle(0, 0, 8, 8)); 466g.Clip = new Region(new Rectangle(0, 0, 8, 8)); 482g.Clip = new Region(clip); 497g.Clip = new Region(new Rectangle(0, 0, 8, 8)); 513g.Clip = new Region(new Rectangle(0, 0, 8, 8)); 528g.Clip = new Region(new Rectangle(0, 0, 8, 8)); 544g.Clip = new Region(new Rectangle(0, 0, 8, 8)); 563g.Clip = new Region(new Rectangle(0, 0, 8, 8)); 599g.Clip = new Region(new Rectangle(0, 0, 8, 8)); 622g.Clip = new Region(new Rectangle(0, 0, 8, 8)); 643g.Clip = new Region(new Rectangle(0, 0, 8, 8)); 955g.Clip = new Region(new Rectangle(10, 10, 10, 10)); 988g.Clip = new Region(new Rectangle(10, 10, 10, 10)); 1022g.Clip = new Region(new Rectangle(10, 10, 10, 10)); 1103g.Clip = new Region(new Rectangle(10, 10, 10, 10)); 1194g.Clip = new Region(rect); 2209g.Clip = new Region(new RectangleF(0, 0, 32, 32)); 2242g.Clip = new Region(new RectangleF(0, 0, 200, 200));
System\Drawing\Graphics_GetContextTests.Core.cs (4)
30graphics.Clip = initialClip; 63graphics.Clip = initialClip; 83graphics.Clip = initialClip; 101graphics.Clip = initialClip;
System\Drawing\Graphics_GetContextTests.cs (5)
34graphics.Clip = initialClip; 66graphics.Clip = initialClip; 86graphics.Clip = initialClip; 102graphics.Clip = initialClip; 123graphics.Clip = initialClip;
System.Windows.Forms (13)
System\Windows\Forms\Control.cs (2)
8174g.Clip = transparentRegion; 8207newArgs.Graphics.Clip = transparentRegion;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
392graphics.Clip = newClip; 418graphics.Clip = oldClip;
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (1)
88e.GraphicsInternal.Clip = originalClip;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
19487g.Clip = clipRegion; 19510g.Clip = clipRegion; 19527g.Clip = clipRegion;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
882g.Clip = originalClip;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
1665graphics.Clip = clipRegion;
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
1103g.Clip = originalClip; 1278g.Clip = IsLabelFilledByOneLink() ? new Region(focusRectangle) : link.VisualRegion;
System\Windows\Forms\Rendering\ControlPaint.cs (1)
1881graphics.Clip = clip;
System.Windows.Forms.Design (7)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
311g.Clip = region;
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
139result.Clip = new Region(_adornerWindow.DesignerFrameDisplayRectangle);
System\Windows\Forms\Design\ControlDesigner.cs (3)
2077graphics.Clip = region; 2275e.Graphics.Clip = originalClip; 2296e.Graphics.Clip = originalClip;
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
149graphics.Clip = oldClip;
System\Windows\Forms\Design\TabOrder.cs (1)
224graphics.Clip = clip;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\GraphicsClipScope.cs (1)
23_graphics.Clip = _originalClip;
System.Windows.Forms.Primitives.Tests (3)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (2)
20g.Clip = r; 103g.Clip = r;
System\Windows\Forms\DeviceContextScopeTests.cs (1)
42graphics.Clip = region;
System.Windows.Forms.Tests (2)
System\Windows\Forms\TextRendererTests.cs (2)
760graphics.Clip = region; 808graphics.Clip = region;
74 references to Clip
System.Drawing.Common.Tests (54)
mono\System.Drawing\GraphicsTests.cs (53)
153rects = g.Clip.GetRegionScans(new Matrix()); 167Assert.True(g.Clip.IsInfinite(g)); 168g.Clip.IsEmpty(g); 169Assert.False(g.Clip.IsEmpty(g)); 170Assert.True(g.Clip.IsInfinite(g)); 180_rects = g.Clip.GetRegionScans(new Matrix()); 207_rects = g.Clip.GetRegionScans(new Matrix()); 225_rects = g.Clip.GetRegionScans(new Matrix()); 244rects = g.Clip.GetRegionScans(new Matrix()); 256rects = g.Clip.GetRegionScans(new Matrix()); 268rects = g.Clip.GetRegionScans(new Matrix()); 380RectangleF bounds = g.Clip.GetBounds(g); 394RectangleF bounds = g.Clip.GetBounds(g); 409bounds = g.Clip.GetBounds(g); 454CheckBounds("graphics.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 16, 16); 458CheckBounds("clip.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8); 469CheckBounds("rotate.Clip.GetBounds", g.Clip.GetBounds(g), 0, -8, 8, 8); 472CheckBounds("identity.ClipBounds", g.Clip.GetBounds(g), 0, 0, 8, 8); 473CheckBounds("identity.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8); 485CheckBounds("scale.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 32, 16); 489CheckBounds("setclip.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8); 498using Region clone = g.Clip.Clone(); 501CheckBounds("translate.Clip.GetBounds", g.Clip.GetBounds(g), -8, -8, 8, 8); 504CheckBounds("setclip.ClipBounds", g.Clip.GetBounds(g), 0, 0, 8, 8); 505CheckBounds("setclip.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8); 516CheckBounds("transform.Clip.GetBounds", g.Clip.GetBounds(g), -8, -8, 8, 8); 520CheckBounds("reset.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8); 531CheckBounds("scale.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 16, 32); 535CheckBounds("resetclip.Clip.GetBounds", g.Clip.GetBounds(g), -4194304, -4194304, 8388608, 8388608); 536Assert.True(g.Clip.IsInfinite(g)); 548CheckBounds("multiply.Clip.GetBounds", g.Clip.GetBounds(g), -16, -16, 8, 8); 552CheckBounds("reset.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8); 561CheckBounds("graphics.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 16, 16); 565CheckBounds("clip.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8); 569CheckBounds("rotate.Clip.GetBounds", g.Clip.GetBounds(g), 0, -8, 8, 8); 573CheckBounds("scale.Clip.GetBounds", g.Clip.GetBounds(g), 0, -16, 32, 16); 577CheckBounds("translate.Clip.GetBounds", g.Clip.GetBounds(g), -8, -24, 32, 16); 581CheckBounds("multiply.Clip.GetBounds", g.Clip.GetBounds(g), -104, -56, 64, 64); 585CheckBounds("reset.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8); 594CheckBounds("graphics.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 16, 16); 597CheckBounds("translated.Clip.GetBounds", g.Clip.GetBounds(g), 16, 16, 16, 16); 603CheckBounds("rectangle.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8); 607CheckBounds("reseted.Clip.GetBounds", g.Clip.GetBounds(g), -16, -16, 8, 8); 616CheckBounds("graphics.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 16, 16); 621CheckBounds("rotated.Clip.GetBounds", g.Clip.GetBounds(g), 0, -16, 16, 16); 626CheckBounds("rectangle.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8); 630CheckBounds("reseted.Clip.GetBounds", g.Clip.GetBounds(g), -8, 0, 8, 8); 639CheckBounds("graphics.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 16, 16); 642CheckBounds("scaled.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 32); 647CheckBounds("rectangle.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 8, 8); 651CheckBounds("reseted.Clip.GetBounds", g.Clip.GetBounds(g), 0, 0, 16, 4); 907Assert.True(g.Clip.IsInfinite(g), message + ".Clip.IsInfinite"); 922Assert.False(g.Clip.IsInfinite(g), message + ".Clip.IsInfinite");
System\Drawing\GraphicsTests.cs (1)
2801Assert.NotNull(graphics.Clip);
System.Windows.Forms (14)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
376Region oldClip = graphics.Clip;
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (1)
79originalClip = e.GraphicsInternal.Clip;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
19424clipRegion = g.Clip; 19507using Region clipRegion = g.Clip; 19524using Region clipRegion = g.Clip;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
864using Region originalClip = g.Clip;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
1590clipRegion = graphics.Clip;
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1024Region originalClip = g.Clip;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1581Region oldClip = g.Clip;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
3480transparentRegion.Intersect(toolstripGraphics.Clip);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
1878Region clip = graphics.Clip;
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (1)
152/// <see cref="Graphics.Clip"/> or <see cref="Graphics.Transform"/>.
System\Windows\Forms\Rendering\TextRenderer.cs (2)
636|| graphics.Clip is null 637|| graphics.Clip.GetHrgn(graphics) == IntPtr.Zero,
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ControlDesigner.cs (1)
2266Region originalClip = e.Graphics.Clip;
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
137Region oldClip = graphics.Clip;
System\Windows\Forms\Design\TabOrder.cs (1)
216Region clip = graphics.Clip;
System.Windows.Forms.Primitives (2)
System\Windows\Forms\GraphicsClipScope.cs (2)
9/// Saves and restores <see cref="Graphics.Clip"/>. 17_originalClip = graphics.Clip;
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\DeviceContextScopeTests.cs (1)
35using Region oldRegion = graphics.Clip;