63 instantiations of Region
System.Drawing (4)
commonui\System\Drawing\Graphics.cs (2)
2655regions[f] = new Region(); 4201Region region = new Region();
commonui\System\Drawing\Region.cs (2)
165return new Region(region); 192return 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)
355Region shadowRegion = new Region(path);
Common\ChartTypes\ColumnChart.cs (2)
1212graph.Clip = new Region(); 1326graph.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)
1024graph.Clip = new Region();
Common\ChartTypes\StackedBarChart.cs (1)
1047graph.Clip = new Region();
Common\ChartTypes\StackedColumnChart.cs (2)
1127graph.Clip = new Region(); 1843graph.Clip = new Region();
Common\General\Axis.cs (1)
2065graph.Clip = new Region(graph.GetPolygonCirclePath(rect, ChartArea.CircularSectorsNumber));
Common\General\Chart.cs (1)
280metaGraphics.Clip = new Region(new Rectangle(0, 0, this.Width, this.Height));
Common\General\ChartGraphics.cs (3)
2041Region region = new Region(labelRect); 3741Region region = new Region(); 4566 this.Clip = new Region(path);
System.Windows.Forms (11)
winforms\Managed\System\WinForms\Control.cs (1)
3001working = new Region(Rectangle.FromLTRB(temp.left, temp.top, temp.right, temp.bottom));
winforms\Managed\System\WinForms\DataGrid.cs (1)
5762using(Region region = new Region(scroll)) {
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
5435using (Region region = new Region(scroll))
winforms\Managed\System\WinForms\ErrorProvider.cs (2)
1187Region windowRegion = new Region(new Rectangle(0, 0, 0, 0)); 1693region = new Region(new Rectangle(0,0,0,0));
winforms\Managed\System\WinForms\LinkLabel.cs (3)
709Region visualRegion = new Region(visualRectangle); 1191using (Region region = new Region(finalrect)) { 1411g.Clip = new Region(finalrect);
winforms\Managed\System\WinForms\ToolStrip.cs (1)
2017region = new Region(regionRect);
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
837Region rgn = new Region(bounds); // create region
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (1)
768Region 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)
355Region shadowRegion = new Region(path);
Common\ChartTypes\ColumnChart.cs (2)
1212graph.Clip = new Region(); 1326graph.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)
1024graph.Clip = new Region();
Common\ChartTypes\StackedBarChart.cs (1)
1047graph.Clip = new Region();
Common\ChartTypes\StackedColumnChart.cs (2)
1127graph.Clip = new Region(); 1843graph.Clip = new Region();
Common\General\Axis.cs (1)
2065graph.Clip = new Region(graph.GetPolygonCirclePath(rect, ChartArea.CircularSectorsNumber));
Common\General\Chart.cs (1)
280metaGraphics.Clip = new Region(new Rectangle(0, 0, this.Width, this.Height));
Common\General\ChartGraphics.cs (3)
2041Region region = new Region(labelRect); 3741Region region = new Region(); 4566 this.Clip = new Region(path);
System.Workflow.ComponentModel (10)
AuthoringOM\Design\ActivityDesigner.cs (1)
2972using (Region clipRegion = new Region(graphicsPath))
AuthoringOM\Design\DesignerHelpers.cs (1)
460using (Region clipRegion = new Region(excludePath))
AuthoringOM\Design\DesignerWidgets.cs (3)
139using (Region clipRegion = new Region(new Rectangle(bounds.X, bounds.Y, bounds.Width + 1, bounds.Height + 1))) 196using (Region clipRegion = new Region(new Rectangle(bounds.X, bounds.Y, bounds.Width + 1, bounds.Height + 1))) 1325base.Region = new Region(graphicsPath);
AuthoringOM\Design\FreeFormDesigner.cs (1)
1083clipRegion = new Region(connectorContainer.Bounds);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (1)
158using (Region clipRegion = new Region(ActivityDesignerPaint.GetDesignerPath(ParentView.RootDesigner, false)))
AuthoringOM\Design\WorkflowLayouts.cs (1)
169using (Region clipRegion = new Region(ActivityDesignerPaint.GetDesignerPath(this.parentView.RootDesigner, false)))
AuthoringOM\Design\WorkflowPrinting.cs (1)
128Region clipRegion = new Region(boundingRectangle);
AuthoringOM\Design\WorkflowView.cs (1)
1594using (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'/>. 2428public void FillRegion(Brush brush, Region region) { 2631public Region[] MeasureCharacterRanges(String text, Font font, RectangleF layoutRect, 2634return new Region[]{}; 2652Region[] regions = new Region[count]; 4009public void SetClip(Region region, CombineMode combineMode) { 4048public void IntersectClip(Region region) { 4075public void ExcludeClip(Region region) { 4138Region cumulClip = this.Clip; // current context clip. 4197public Region Clip { 4201Region region = new Region();
commonui\System\Drawing\GraphicsContext.cs (3)
31private Region clipRegion; 69Region clip = g.Clip; 126public 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'/>. 155public static Region FromHrgn(IntPtr hrgn) { 180/// Creates an exact copy if this <see cref='System.Drawing.Region'/>. 184public 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'/>. 328public 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'/>. 403public 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'/>. 461public 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'/>. 520public 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'/>. 582public 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'/> 728public 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)
170Region clipRgn = null; 179clipRgn = data[0] as Region;
misc\GDI\WindowsRegion.cs (1)
92public 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)
355Region shadowRegion = new Region(path); 360Region clipRegion = null; 361Region clipRegionOld = null;
Common\ChartTypes\ColumnChart.cs (2)
1211Region oldClipRegion = graph.Clip; 1325Region oldClipRegion = graph.Clip;
Common\ChartTypes\PieChart.cs (1)
1085 Region oldClipRegion = graph.Clip;
Common\ChartTypes\RangeChart.cs (2)
518 Region shadowRegion = new Region(path); 521Region clipRegion = null;
Common\ChartTypes\StackedAreaChart.cs (1)
1023Region oldClipRegion = graph.Clip;
Common\ChartTypes\StackedBarChart.cs (1)
1046Region oldClipRegion = graph.Clip;
Common\ChartTypes\StackedColumnChart.cs (2)
1126Region oldClipRegion = graph.Clip; 1842Region oldClipRegion = graph.Clip;
Common\General\Axis.cs (1)
2061Region oldRegion = null;
Common\General\ChartGraphics.cs (5)
2041Region region = new Region(labelRect); 3736Region oldClipRegion = null; 3741Region region = new Region(); 3847Region 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)
170Region clipRgn = null; 179clipRgn = data[0] as Region;
misc\GDI\WindowsRegion.cs (1)
92public static WindowsRegion FromRegion( Region region, Graphics g ){
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (2)
559Region oldClip = graphics.Clip; 564Region newClip = oldClip.Clone();
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxPopupAdapter.cs (3)
33Region original = e.Graphics.Clip; 58Region original = e.Graphics.Clip; 87Region original = e.Graphics.Clip;
winforms\Managed\System\WinForms\Control.cs (11)
2992Region working; 3562public Region Region { 3564return (Region)Properties.GetObject(PropRegion); 3572Region oldRegion = Region; 6565internal IntPtr GetHRgn(Region region) { 7197public void Invalidate(Region region) { 7208public void Invalidate(Region region, bool invalidateChildren) { 8743Region region = (Region)Properties.GetObject(PropRegion); 9767internal void PaintTransparentBackground(PaintEventArgs e, Rectangle rectangle, Region transparentRegion) { 18432Region controlRegion = control.Region;
winforms\Managed\System\WinForms\ControlPaint.cs (1)
1879Region clip = graphics.Clip;
winforms\Managed\System\WinForms\DataGrid.cs (3)
4412Region clipRegion = g.Clip; 5762using(Region region = new Region(scroll)) { 7327Region r = g.Clip;
winforms\Managed\System\WinForms\DataGridBoolColumn.cs (1)
391Region r = g.Clip;
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (1)
649Region r = g.Clip;
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
910Region reg = g.Clip;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (5)
5435using (Region region = new Region(scroll)) 17136using (Region clipRegion = g.Clip) 19965Region clipRegion = null; 20051using (Region clipRegion = g.Clip) 20070using (Region clipRegion = g.Clip)
winforms\Managed\System\WinForms\DataGridViewRow.cs (1)
1687Region clipRegion = null;
winforms\Managed\System\WinForms\ErrorProvider.cs (3)
1187Region windowRegion = new Region(new Rectangle(0, 0, 0, 0)); 1653Region region; 1688public Region Region {
winforms\Managed\System\WinForms\LinkLabel.cs (10)
72Region textRegion = null; 659Region[] textRegions = g.MeasureCharacterRanges (text, alwaysUnderlined, ClientRectWithPadding, textFormat); 709Region visualRegion = new Region(visualRectangle); 1164Region originalClip = e.Graphics.Clip; 1191using (Region region = new Region(finalrect)) { 1234Region originalClip = e.Graphics.Clip; 1287Region oldClip = e.Graphics.Clip; 2395private Region visualRegion; 2608internal Region VisualRegion { 2711Region region = link.VisualRegion;
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
588Region originalClip = pevent.Graphics.Clip;
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
1923Region oldClip = g.Clip;
winforms\Managed\System\WinForms\ToolStrip.cs (6)
1990Region region = null; 2810Region transparentRegion = Renderer.GetTransparentRegion(this); 2827internal void PaintParentRegion(Graphics g, Region region) { 3633Region transparentRegion = Renderer.GetTransparentRegion(this); 3812using (Region transparentRegion = Renderer.GetTransparentRegion(this)) { 3837private void EraseCorners(PaintEventArgs e, Region transparentRegion) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
855new public Region Region {
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
837Region rgn = new Region(bounds); // create region
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (2)
725internal override Region GetTransparentRegion(ToolStrip toolStrip) { 768Region parentRegionToPaint = new Region(topLeftParentHorizontalPixels);
winforms\Managed\System\WinForms\ToolStripRenderer.cs (1)
656internal virtual Region GetTransparentRegion(ToolStrip toolStrip) {
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (4)
560public Region GetBackgroundRegion(IDeviceContext dc, Rectangle bounds) { 584 Region region = Region.FromHrgn(hRegion); 962public 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)
355Region shadowRegion = new Region(path); 360Region clipRegion = null; 361Region clipRegionOld = null;
Common\ChartTypes\ColumnChart.cs (2)
1211Region oldClipRegion = graph.Clip; 1325Region oldClipRegion = graph.Clip;
Common\ChartTypes\PieChart.cs (1)
1085 Region oldClipRegion = graph.Clip;
Common\ChartTypes\RangeChart.cs (2)
518 Region shadowRegion = new Region(path); 521Region clipRegion = null;
Common\ChartTypes\StackedAreaChart.cs (1)
1023Region oldClipRegion = graph.Clip;
Common\ChartTypes\StackedBarChart.cs (1)
1046Region oldClipRegion = graph.Clip;
Common\ChartTypes\StackedColumnChart.cs (2)
1126Region oldClipRegion = graph.Clip; 1842Region oldClipRegion = graph.Clip;
Common\General\Axis.cs (1)
2061Region oldRegion = null;
Common\General\ChartGraphics.cs (5)
2041Region region = new Region(labelRect); 3736Region oldClipRegion = null; 3741Region region = new Region(); 3847Region 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)
2972using (Region clipRegion = new Region(graphicsPath)) 2974Region oldRegion = e.Graphics.Clip;
AuthoringOM\Design\DesignerHelpers.cs (1)
460using (Region clipRegion = new Region(excludePath))
AuthoringOM\Design\DesignerWidgets.cs (2)
139using (Region clipRegion = new Region(new Rectangle(bounds.X, bounds.Y, bounds.Width + 1, bounds.Height + 1))) 196using (Region clipRegion = new Region(new Rectangle(bounds.X, bounds.Y, bounds.Width + 1, bounds.Height + 1)))
AuthoringOM\Design\FreeFormDesigner.cs (2)
1076Region clipRegion = null; 1077Region oldClipRegion = e.Graphics.Clip;
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (2)
69Region clipRegion = null; 70Region oldClipRegion = graphics.Clip;
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (2)
158using (Region clipRegion = new Region(ActivityDesignerPaint.GetDesignerPath(ParentView.RootDesigner, false))) 160Region oldRegion = eventArgs.Graphics.Clip;
AuthoringOM\Design\WorkflowLayouts.cs (2)
169using (Region clipRegion = new Region(ActivityDesignerPaint.GetDesignerPath(this.parentView.RootDesigner, false))) 171Region oldRegion = graphics.Clip;
AuthoringOM\Design\WorkflowPrinting.cs (2)
128Region clipRegion = new Region(boundingRectangle); 141Region oldClipRegion = graphics.Clip;
AuthoringOM\Design\WorkflowView.cs (2)
1594using (Region clipRegion = new Region()) 1597Region oldRegion = viewPortGraphics.Clip;