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