44 references to ClipBounds
System.Drawing.Common.Tests (39)
mono\System.Drawing\GraphicsTests.cs (38)
106Assert.Equal(r.GetBounds(g), g.ClipBounds); 321Assert.Equal(0, (int)g.ClipBounds.X); 322Assert.Equal(0, (int)g.ClipBounds.Y); 337Assert.Equal(r.GetBounds(g), g.ClipBounds); 395Compare("translate", bounds, g.ClipBounds); 410Compare("reset", bounds, g.ClipBounds); 453CheckBounds("graphics.ClipBounds", g.ClipBounds, 0, 0, 16, 16); 457CheckBounds("clip.ClipBounds", g.ClipBounds, 0, 0, 8, 8); 468CheckBounds("rotate.ClipBounds", g.ClipBounds, 0, -8, 8, 8); 484CheckBounds("scale.ClipBounds", g.ClipBounds, 0, 0, 32, 16); 488CheckBounds("setclip.ClipBounds", g.ClipBounds, 0, 0, 8, 8); 500CheckBounds("translate.ClipBounds", g.ClipBounds, -8, -8, 8, 8); 515CheckBounds("transform.ClipBounds", g.ClipBounds, -8, -8, 8, 8); 519CheckBounds("reset.ClipBounds", g.ClipBounds, 0, 0, 8, 8); 530CheckBounds("scale.ClipBounds", g.ClipBounds, 0, 0, 16, 32); 547CheckBounds("multiply.ClipBounds", g.ClipBounds, -16, -16, 8, 8); 551CheckBounds("reset.ClipBounds", g.ClipBounds, 0, 0, 8, 8); 560CheckBounds("graphics.ClipBounds", g.ClipBounds, 0, 0, 16, 16); 564CheckBounds("clip.ClipBounds", g.ClipBounds, 0, 0, 8, 8); 568CheckBounds("rotate.ClipBounds", g.ClipBounds, 0, -8, 8, 8); 572CheckBounds("scale.ClipBounds", g.ClipBounds, 0, -16, 32, 16); 576CheckBounds("translate.ClipBounds", g.ClipBounds, -8, -24, 32, 16); 580CheckBounds("multiply.ClipBounds", g.ClipBounds, -104, -56, 64, 64); 584CheckBounds("reset.ClipBounds", g.ClipBounds, 0, 0, 8, 8); 593CheckBounds("graphics.ClipBounds", g.ClipBounds, 0, 0, 16, 16); 596CheckBounds("translated.ClipBounds", g.ClipBounds, 16, 16, 16, 16); 601CheckBounds("rectangle.ClipBounds", g.ClipBounds, 0, 0, 8, 8); 606CheckBounds("reseted.ClipBounds", g.ClipBounds, -16, -16, 8, 8); 615CheckBounds("graphics.ClipBounds", g.ClipBounds, 0, 0, 16, 16); 620CheckBounds("rotated.ClipBounds", g.ClipBounds, 0, -16, 16, 16); 624CheckBounds("rectangle.ClipBounds", g.ClipBounds, 0, 0, 8, 8); 629CheckBounds("reseted.ClipBounds", g.ClipBounds, -8, 0, 8, 8); 638CheckBounds("graphics.ClipBounds", g.ClipBounds, 0, 0, 16, 16); 641CheckBounds("scaled.ClipBounds", g.ClipBounds, 0, 0, 8, 32); 645CheckBounds("rectangle.ClipBounds", g.ClipBounds, 0, 0, 8, 8); 650CheckBounds("reseted.ClipBounds", g.ClipBounds, 0, 0, 16, 4); 2243RectangleF clipbound = g.ClipBounds; 2256RectangleF rotclipbound = g.ClipBounds;
System\Drawing\GraphicsTests.cs (1)
2802Assert.Equal(new RectangleF(-4194304, -4194304, 8388608, 8388608), graphics.ClipBounds);
System.Windows.Forms (5)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.DataGridViewButtonCellRenderer.cs (1)
28DataGridViewButtonRenderer.DrawBackground(g, bounds, Rectangle.Truncate(g.ClipBounds));
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellRenderer.cs (1)
28CheckBoxRenderer.DrawBackground(g, bounds, Rectangle.Truncate(g.ClipBounds));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellRenderer.cs (1)
27Rectangle rectClip = Rectangle.Truncate(g.ClipBounds);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellRenderer.cs (1)
28VisualStyleRenderer.DrawBackground(g, bounds, Rectangle.Truncate(g.ClipBounds));
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellRenderer.cs (1)
28VisualStyleRenderer.DrawBackground(g, bounds, Rectangle.Truncate(g.ClipBounds));