63 instantiations of Region
System.Drawing (4)
commonui\System\Drawing\Graphics.cs (2)
2655
regions[f] = new
Region
();
4201
Region region = new
Region
();
commonui\System\Drawing\Region.cs (2)
165
return new
Region
(region);
192
return new
Region
(region);
System.Web.DataVisualization (20)
Common\Borders3D\EmbedBorder.cs (4)
1027
innerShadowRegion = new
Region
(
1050
graph.Clip = new
Region
();
1057
innerShadowRegion = new
Region
(
1080
graph.Clip = new
Region
();
Common\Borders3D\EmbossBorder.cs (2)
246
Region innerShadowRegion = new
Region
(
263
graph.Clip = new
Region
();
Common\ChartTypes\AreaChart.cs (1)
355
Region shadowRegion = new
Region
(path);
Common\ChartTypes\ColumnChart.cs (2)
1212
graph.Clip = new
Region
();
1326
graph.Clip = new
Region
();
Common\ChartTypes\PieChart.cs (1)
1086
graph.Clip = new
Region
();
Common\ChartTypes\RangeChart.cs (1)
518
Region shadowRegion = new
Region
(path);
Common\ChartTypes\StackedAreaChart.cs (1)
1024
graph.Clip = new
Region
();
Common\ChartTypes\StackedBarChart.cs (1)
1047
graph.Clip = new
Region
();
Common\ChartTypes\StackedColumnChart.cs (2)
1127
graph.Clip = new
Region
();
1843
graph.Clip = new
Region
();
Common\General\Axis.cs (1)
2065
graph.Clip = new
Region
(graph.GetPolygonCirclePath(rect, ChartArea.CircularSectorsNumber));
Common\General\Chart.cs (1)
280
metaGraphics.Clip = new
Region
(new Rectangle(0, 0, this.Width, this.Height));
Common\General\ChartGraphics.cs (3)
2041
Region region = new
Region
(labelRect);
3741
Region region = new
Region
();
4566
this.Clip = new
Region
(path);
System.Windows.Forms (11)
winforms\Managed\System\WinForms\Control.cs (1)
3001
working = new
Region
(Rectangle.FromLTRB(temp.left, temp.top, temp.right, temp.bottom));
winforms\Managed\System\WinForms\DataGrid.cs (1)
5762
using(Region region = new
Region
(scroll)) {
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
5435
using (Region region = new
Region
(scroll))
winforms\Managed\System\WinForms\ErrorProvider.cs (2)
1187
Region windowRegion = new
Region
(new Rectangle(0, 0, 0, 0));
1693
region = new
Region
(new Rectangle(0,0,0,0));
winforms\Managed\System\WinForms\LinkLabel.cs (3)
709
Region visualRegion = new
Region
(visualRectangle);
1191
using (Region region = new
Region
(finalrect)) {
1411
g.Clip = new
Region
(finalrect);
winforms\Managed\System\WinForms\ToolStrip.cs (1)
2017
region = new
Region
(regionRect);
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
837
Region rgn = new
Region
(bounds); // create region
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (1)
768
Region parentRegionToPaint = new
Region
(topLeftParentHorizontalPixels);
System.Windows.Forms.DataVisualization (18)
Common\Borders3D\EmbedBorder.cs (2)
1050
graph.Clip = new
Region
();
1080
graph.Clip = new
Region
();
Common\Borders3D\EmbossBorder.cs (2)
246
Region innerShadowRegion = new
Region
(
263
graph.Clip = new
Region
();
Common\ChartTypes\AreaChart.cs (1)
355
Region shadowRegion = new
Region
(path);
Common\ChartTypes\ColumnChart.cs (2)
1212
graph.Clip = new
Region
();
1326
graph.Clip = new
Region
();
Common\ChartTypes\PieChart.cs (1)
1086
graph.Clip = new
Region
();
Common\ChartTypes\RangeChart.cs (1)
518
Region shadowRegion = new
Region
(path);
Common\ChartTypes\StackedAreaChart.cs (1)
1024
graph.Clip = new
Region
();
Common\ChartTypes\StackedBarChart.cs (1)
1047
graph.Clip = new
Region
();
Common\ChartTypes\StackedColumnChart.cs (2)
1127
graph.Clip = new
Region
();
1843
graph.Clip = new
Region
();
Common\General\Axis.cs (1)
2065
graph.Clip = new
Region
(graph.GetPolygonCirclePath(rect, ChartArea.CircularSectorsNumber));
Common\General\Chart.cs (1)
280
metaGraphics.Clip = new
Region
(new Rectangle(0, 0, this.Width, this.Height));
Common\General\ChartGraphics.cs (3)
2041
Region region = new
Region
(labelRect);
3741
Region region = new
Region
();
4566
this.Clip = new
Region
(path);
System.Workflow.ComponentModel (10)
AuthoringOM\Design\ActivityDesigner.cs (1)
2972
using (Region clipRegion = new
Region
(graphicsPath))
AuthoringOM\Design\DesignerHelpers.cs (1)
460
using (Region clipRegion = new
Region
(excludePath))
AuthoringOM\Design\DesignerWidgets.cs (3)
139
using (Region clipRegion = new
Region
(new Rectangle(bounds.X, bounds.Y, bounds.Width + 1, bounds.Height + 1)))
196
using (Region clipRegion = new
Region
(new Rectangle(bounds.X, bounds.Y, bounds.Width + 1, bounds.Height + 1)))
1325
base.Region = new
Region
(graphicsPath);
AuthoringOM\Design\FreeFormDesigner.cs (1)
1083
clipRegion = new
Region
(connectorContainer.Bounds);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (1)
158
using (Region clipRegion = new
Region
(ActivityDesignerPaint.GetDesignerPath(ParentView.RootDesigner, false)))
AuthoringOM\Design\WorkflowLayouts.cs (1)
169
using (Region clipRegion = new
Region
(ActivityDesignerPaint.GetDesignerPath(this.parentView.RootDesigner, false)))
AuthoringOM\Design\WorkflowPrinting.cs (1)
128
Region clipRegion = new
Region
(boundingRectangle);
AuthoringOM\Design\WorkflowView.cs (1)
1594
using (Region clipRegion = new
Region
())
226 references to Region
System.Drawing (97)
commonui\System\Drawing\Advanced\RectangleF.cs (1)
23
/// more advanced region functions use a <see cref='System.Drawing.
Region
'/>
commonui\System\Drawing\Advanced\RegionData.cs (2)
18
/// Encapsulates the data that makes up a <see cref='System.Drawing.
Region
'/>.
31
/// An array of characters that contain the data that makes up a <see cref='System.Drawing.
Region
'/>.
commonui\System\Drawing\Graphics.cs (12)
2425
/// Fills the interior of a <see cref='System.Drawing.
Region
'/>.
2428
public void FillRegion(Brush brush,
Region
region) {
2631
public
Region
[] MeasureCharacterRanges(String text, Font font, RectangleF layoutRect,
2634
return new
Region
[]{};
2652
Region
[] regions = new
Region
[count];
4009
public void SetClip(
Region
region, CombineMode combineMode) {
4048
public void IntersectClip(
Region
region) {
4075
public void ExcludeClip(
Region
region) {
4138
Region
cumulClip = this.Clip; // current context clip.
4197
public
Region
Clip {
4201
Region
region = new Region();
commonui\System\Drawing\GraphicsContext.cs (3)
31
private
Region
clipRegion;
69
Region
clip = g.Clip;
126
public
Region
Clip {
commonui\System\Drawing\Rectangle.cs (2)
23
/// more advanced region functions use a <see cref='System.Drawing.
Region
'/>
38
/// more advanced region functions use a <see cref='System.Drawing.
Region
'/>
commonui\System\Drawing\Region.cs (74)
41
/// Initializes a new instance of the <see cref='System.Drawing.
Region
'/> class.
60
/// Initializes a new instance of the <see cref='System.Drawing.
Region
'/> class from the specified <see cref='System.Drawing.RectangleF'/> .
81
/// Initializes a new instance of the <see cref='System.Drawing.
Region
'/> class from the specified <see cref='System.Drawing.Rectangle'/>.
102
/// Initializes a new instance of the <see cref='System.Drawing.
Region
'/> class
124
/// Initializes a new instance of the <see cref='System.Drawing.
Region
'/> class
150
/// Initializes a new instance of the <see cref='System.Drawing.
Region
'/> class
151
/// from the specified existing <see cref='System.Drawing.
Region
'/>.
155
public static
Region
FromHrgn(IntPtr hrgn) {
180
/// Creates an exact copy if this <see cref='System.Drawing.
Region
'/>.
184
public
Region
Clone() {
202
/// <see cref='System.Drawing.
Region
'/>.
240
/// <see cref='System.Drawing.
Region
'/>.
252
/// Initializes this <see cref='System.Drawing.
Region
'/> to an
264
/// Initializes this <see cref='System.Drawing.
Region
'/> to an
277
/// Updates this <see cref='System.Drawing.
Region
'/> to the intersection of itself
292
/// Updates this <see cref='System.Drawing.
Region
'/> to the intersection of itself with the specified
307
/// Updates this <see cref='System.Drawing.
Region
'/> to the intersection of itself with the specified
324
/// Updates this <see cref='System.Drawing.
Region
'/> to the intersection of itself with the specified
325
/// <see cref='System.Drawing.
Region
'/>.
328
public void Intersect(
Region
region) {
356
/// Updates this <see cref='System.Drawing.
Region
'/> to the union of itself and the
371
/// Updates this <see cref='System.Drawing.
Region
'/> to the union of itself and the
384
/// Updates this <see cref='System.Drawing.
Region
'/> to the union of itself and the
400
/// Updates this <see cref='System.Drawing.
Region
'/> to the union of itself and the specified <see cref='System.Drawing.
Region
'/>.
403
public void Union(
Region
region) {
416
/// Updates this <see cref='System.Drawing.
Region
'/> to the union minus the
430
/// Updates this <see cref='System.Drawing.
Region
'/> to the union minus the
443
/// Updates this <see cref='System.Drawing.
Region
'/> to the union minus the
458
/// Updates this <see cref='System.Drawing.
Region
'/> to the union minus the
459
/// intersection of itself with the specified <see cref='System.Drawing.
Region
'/>.
461
public void Xor(
Region
region) {
474
/// Updates this <see cref='System.Drawing.
Region
'/> to the portion of its interior
488
/// Updates this <see cref='System.Drawing.
Region
'/> to the portion of its interior
501
/// Updates this <see cref='System.Drawing.
Region
'/> to the portion of its interior
517
/// Updates this <see cref='System.Drawing.
Region
'/> to the portion of its interior
518
/// that does not intersect with the specified <see cref='System.Drawing.
Region
'/>.
520
public void Exclude(
Region
region) {
534
/// Updates this <see cref='System.Drawing.
Region
'/> to the portion of the
535
/// specified <see cref='System.Drawing.RectangleF'/> that does not intersect with this <see cref='System.Drawing.
Region
'/>.
548
/// Updates this <see cref='System.Drawing.
Region
'/> to the portion of the
549
/// specified <see cref='System.Drawing.Rectangle'/> that does not intersect with this <see cref='System.Drawing.
Region
'/>.
561
/// Updates this <see cref='System.Drawing.
Region
'/> to the portion of the
563
/// <see cref='System.Drawing.
Region
'/>.
578
/// Updates this <see cref='System.Drawing.
Region
'/> to the portion of the
579
/// specified <see cref='System.Drawing.
Region
'/> that does not intersect with this <see cref='System.Drawing.
Region
'/>.
582
public void Complement(
Region
region) {
597
/// Offsets the coordinates of this <see cref='System.Drawing.
Region
'/> by the
609
/// Offsets the coordinates of this <see cref='System.Drawing.
Region
'/> by the
621
/// Transforms this <see cref='System.Drawing.
Region
'/> by the
641
/// region that bounds this <see cref='System.Drawing.
Region
'/> on the drawing surface of a <see cref='System.Drawing.Graphics'/>.
659
/// Returns a Windows handle to this <see cref='System.Drawing.
Region
'/> in the
683
/// Tests whether this <see cref='System.Drawing.
Region
'/> has an
703
/// Tests whether this <see cref='System.Drawing.
Region
'/> has
723
/// Tests whether the specified <see cref='System.Drawing.
Region
'/> is
724
/// identical to this <see cref='System.Drawing.
Region
'/>
728
public bool Equals(
Region
region, Graphics g) {
747
/// information that describes this <see cref='System.Drawing.
Region
'/>.
779
/// contained within this <see cref='System.Drawing.
Region
'/> in the specified graphics context.
789
/// Tests whether the specified <see cref='System.Drawing.PointF'/> is contained within this <see cref='System.Drawing.
Region
'/>.
799
/// Tests whether the specified point is contained within this <see cref='System.Drawing.
Region
'/> in the
811
/// contained within this <see cref='System.Drawing.
Region
'/> in the specified graphics context.
830
/// Tests whether the specified rectangle is contained within this <see cref='System.Drawing.
Region
'/>
842
/// <see cref='System.Drawing.
Region
'/>.
852
/// Tests whether the specified rectangle is contained within this <see cref='System.Drawing.
Region
'/> in the
863
/// Tests whether the specified <see cref='System.Drawing.RectangleF'/> is contained within this <see cref='System.Drawing.
Region
'/> in the specified graphics context.
884
/// Tests whether the specified point is contained within this <see cref='System.Drawing.
Region
'/> in the
895
/// Tests whether the specified <see cref='System.Drawing.Point'/> is contained within this <see cref='System.Drawing.
Region
'/>.
906
/// <see cref='System.Drawing.
Region
'/> in the specified
925
/// Tests whether the specified rectangle is contained within this <see cref='System.Drawing.
Region
'/>
937
/// <see cref='System.Drawing.
Region
'/>.
947
/// Tests whether the specified rectangle is contained within this <see cref='System.Drawing.
Region
'/> in the
959
/// <see cref='System.Drawing.
Region
'/>
misc\GDI\WindowsGraphics.cs (2)
170
Region
clipRgn = null;
179
clipRgn = data[0] as
Region
;
misc\GDI\WindowsRegion.cs (1)
92
public static WindowsRegion FromRegion(
Region
region, Graphics g ){
System.Web.DataVisualization (26)
Common\Borders3D\EmbedBorder.cs (1)
1021
Region
innerShadowRegion = null;
Common\Borders3D\EmbossBorder.cs (1)
246
Region
innerShadowRegion = new Region(
Common\ChartTypes\AreaChart.cs (3)
355
Region
shadowRegion = new Region(path);
360
Region
clipRegion = null;
361
Region
clipRegionOld = null;
Common\ChartTypes\ColumnChart.cs (2)
1211
Region
oldClipRegion = graph.Clip;
1325
Region
oldClipRegion = graph.Clip;
Common\ChartTypes\PieChart.cs (1)
1085
Region
oldClipRegion = graph.Clip;
Common\ChartTypes\RangeChart.cs (2)
518
Region
shadowRegion = new Region(path);
521
Region
clipRegion = null;
Common\ChartTypes\StackedAreaChart.cs (1)
1023
Region
oldClipRegion = graph.Clip;
Common\ChartTypes\StackedBarChart.cs (1)
1046
Region
oldClipRegion = graph.Clip;
Common\ChartTypes\StackedColumnChart.cs (2)
1126
Region
oldClipRegion = graph.Clip;
1842
Region
oldClipRegion = graph.Clip;
Common\General\Axis.cs (1)
2061
Region
oldRegion = null;
Common\General\ChartGraphics.cs (5)
2041
Region
region = new Region(labelRect);
3736
Region
oldClipRegion = null;
3741
Region
region = new Region();
3847
Region
region = this.Clip;
4565
Region
oldClipRegion = this.Clip;
Common\General\ChartRenderingEngine.cs (2)
529
Region
region
814
internal
Region
Clip
Common\General\GdiGraphics.cs (2)
431
Region
region
683
public
Region
Clip
Common\General\IChartRenderingEngine.cs (2)
346
Region
region
522
Region
Clip {get; set;}
System.Windows.Forms (62)
misc\GDI\WindowsGraphics.cs (2)
170
Region
clipRgn = null;
179
clipRgn = data[0] as
Region
;
misc\GDI\WindowsRegion.cs (1)
92
public static WindowsRegion FromRegion(
Region
region, Graphics g ){
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (2)
559
Region
oldClip = graphics.Clip;
564
Region
newClip = oldClip.Clone();
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxPopupAdapter.cs (3)
33
Region
original = e.Graphics.Clip;
58
Region
original = e.Graphics.Clip;
87
Region
original = e.Graphics.Clip;
winforms\Managed\System\WinForms\Control.cs (11)
2992
Region
working;
3562
public
Region
Region {
3564
return (
Region
)Properties.GetObject(PropRegion);
3572
Region
oldRegion = Region;
6565
internal IntPtr GetHRgn(
Region
region) {
7197
public void Invalidate(
Region
region) {
7208
public void Invalidate(
Region
region, bool invalidateChildren) {
8743
Region
region = (
Region
)Properties.GetObject(PropRegion);
9767
internal void PaintTransparentBackground(PaintEventArgs e, Rectangle rectangle,
Region
transparentRegion) {
18432
Region
controlRegion = control.Region;
winforms\Managed\System\WinForms\ControlPaint.cs (1)
1879
Region
clip = graphics.Clip;
winforms\Managed\System\WinForms\DataGrid.cs (3)
4412
Region
clipRegion = g.Clip;
5762
using(
Region
region = new Region(scroll)) {
7327
Region
r = g.Clip;
winforms\Managed\System\WinForms\DataGridBoolColumn.cs (1)
391
Region
r = g.Clip;
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (1)
649
Region
r = g.Clip;
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
910
Region
reg = g.Clip;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (5)
5435
using (
Region
region = new Region(scroll))
17136
using (
Region
clipRegion = g.Clip)
19965
Region
clipRegion = null;
20051
using (
Region
clipRegion = g.Clip)
20070
using (
Region
clipRegion = g.Clip)
winforms\Managed\System\WinForms\DataGridViewRow.cs (1)
1687
Region
clipRegion = null;
winforms\Managed\System\WinForms\ErrorProvider.cs (3)
1187
Region
windowRegion = new Region(new Rectangle(0, 0, 0, 0));
1653
Region
region;
1688
public
Region
Region {
winforms\Managed\System\WinForms\LinkLabel.cs (10)
72
Region
textRegion = null;
659
Region
[] textRegions = g.MeasureCharacterRanges (text, alwaysUnderlined, ClientRectWithPadding, textFormat);
709
Region
visualRegion = new Region(visualRectangle);
1164
Region
originalClip = e.Graphics.Clip;
1191
using (
Region
region = new Region(finalrect)) {
1234
Region
originalClip = e.Graphics.Clip;
1287
Region
oldClip = e.Graphics.Clip;
2395
private
Region
visualRegion;
2608
internal
Region
VisualRegion {
2711
Region
region = link.VisualRegion;
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
588
Region
originalClip = pevent.Graphics.Clip;
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
1923
Region
oldClip = g.Clip;
winforms\Managed\System\WinForms\ToolStrip.cs (6)
1990
Region
region = null;
2810
Region
transparentRegion = Renderer.GetTransparentRegion(this);
2827
internal void PaintParentRegion(Graphics g,
Region
region) {
3633
Region
transparentRegion = Renderer.GetTransparentRegion(this);
3812
using (
Region
transparentRegion = Renderer.GetTransparentRegion(this)) {
3837
private void EraseCorners(PaintEventArgs e,
Region
transparentRegion) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
855
new public
Region
Region {
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
837
Region
rgn = new Region(bounds); // create region
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (2)
725
internal override
Region
GetTransparentRegion(ToolStrip toolStrip) {
768
Region
parentRegionToPaint = new Region(topLeftParentHorizontalPixels);
winforms\Managed\System\WinForms\ToolStripRenderer.cs (1)
656
internal virtual
Region
GetTransparentRegion(ToolStrip toolStrip) {
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (4)
560
public
Region
GetBackgroundRegion(IDeviceContext dc, Rectangle bounds) {
584
Region
region =
Region
.FromHrgn(hRegion);
962
public HitTestCode HitTestBackground(Graphics g, Rectangle backgroundRectangle,
Region
region, Point pt, HitTestOptions options) {
System.Windows.Forms.DataVisualization (24)
Common\Borders3D\EmbedBorder.cs (1)
1021
Region
innerShadowRegion = null;
Common\Borders3D\EmbossBorder.cs (1)
246
Region
innerShadowRegion = new Region(
Common\ChartTypes\AreaChart.cs (3)
355
Region
shadowRegion = new Region(path);
360
Region
clipRegion = null;
361
Region
clipRegionOld = null;
Common\ChartTypes\ColumnChart.cs (2)
1211
Region
oldClipRegion = graph.Clip;
1325
Region
oldClipRegion = graph.Clip;
Common\ChartTypes\PieChart.cs (1)
1085
Region
oldClipRegion = graph.Clip;
Common\ChartTypes\RangeChart.cs (2)
518
Region
shadowRegion = new Region(path);
521
Region
clipRegion = null;
Common\ChartTypes\StackedAreaChart.cs (1)
1023
Region
oldClipRegion = graph.Clip;
Common\ChartTypes\StackedBarChart.cs (1)
1046
Region
oldClipRegion = graph.Clip;
Common\ChartTypes\StackedColumnChart.cs (2)
1126
Region
oldClipRegion = graph.Clip;
1842
Region
oldClipRegion = graph.Clip;
Common\General\Axis.cs (1)
2061
Region
oldRegion = null;
Common\General\ChartGraphics.cs (5)
2041
Region
region = new Region(labelRect);
3736
Region
oldClipRegion = null;
3741
Region
region = new Region();
3847
Region
region = this.Clip;
4565
Region
oldClipRegion = this.Clip;
Common\General\ChartRenderingEngine.cs (2)
529
Region
region
814
internal
Region
Clip
Common\General\GdiGraphics.cs (2)
431
Region
region
683
public
Region
Clip
System.Workflow.ComponentModel (17)
AuthoringOM\Design\ActivityDesigner.cs (2)
2972
using (
Region
clipRegion = new Region(graphicsPath))
2974
Region
oldRegion = e.Graphics.Clip;
AuthoringOM\Design\DesignerHelpers.cs (1)
460
using (
Region
clipRegion = new Region(excludePath))
AuthoringOM\Design\DesignerWidgets.cs (2)
139
using (
Region
clipRegion = new Region(new Rectangle(bounds.X, bounds.Y, bounds.Width + 1, bounds.Height + 1)))
196
using (
Region
clipRegion = new Region(new Rectangle(bounds.X, bounds.Y, bounds.Width + 1, bounds.Height + 1)))
AuthoringOM\Design\FreeFormDesigner.cs (2)
1076
Region
clipRegion = null;
1077
Region
oldClipRegion = e.Graphics.Clip;
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (2)
69
Region
clipRegion = null;
70
Region
oldClipRegion = graphics.Clip;
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (2)
158
using (
Region
clipRegion = new Region(ActivityDesignerPaint.GetDesignerPath(ParentView.RootDesigner, false)))
160
Region
oldRegion = eventArgs.Graphics.Clip;
AuthoringOM\Design\WorkflowLayouts.cs (2)
169
using (
Region
clipRegion = new Region(ActivityDesignerPaint.GetDesignerPath(this.parentView.RootDesigner, false)))
171
Region
oldRegion = graphics.Clip;
AuthoringOM\Design\WorkflowPrinting.cs (2)
128
Region
clipRegion = new Region(boundingRectangle);
141
Region
oldClipRegion = graphics.Clip;
AuthoringOM\Design\WorkflowView.cs (2)
1594
using (
Region
clipRegion = new Region())
1597
Region
oldRegion = viewPortGraphics.Clip;