300 writes to Y
System.Drawing (6)
commonui\System\Drawing\Icon.cs (2)
508copy.Y += (int) graphics.Transform.OffsetY; 533copy.Y += (int) graphics.Transform.OffsetY;
commonui\System\Drawing\Rectangle.cs (4)
104Y = value.Y; 394this.Y -= height; 429this.Y = result.Y; 497this.Y += y;
System.Web.DataVisualization (18)
Common\General\Legend.cs (10)
483 this._titlePosition.Y += this.GetBorderSize(); 521 this._headerPosition.Y += this.GetBorderSize(); 813 cellPosition.Y += this._cellHeights[columnIndex, index]; 817 cellPosition.Y += itemHalfSpacing.Height * rowIndex * 2 + itemHalfSpacing.Height; 2472 separatorPosition.Y = legendItem.Cells[0].cellPosition.Bottom; 2493 separatorRect.Y += this.GetBorderSize() + this._titlePosition.Height; 4040 legendPosition.Y += /*this.offset.Height + */this.GetBorderSize(); 4101 fillRect.Y -= this._offset.Height; 4272 legendPosition.Y += this.GetBorderSize(); 4316 rect.Y += this._offset.Height;
Common\General\LegendColumns.cs (8)
1448 this.cellPosition.Y += (int)(this.Margins.Top * singleWCharacterSize.Height / 100f); 2146 imagePosition.Y = (int)((this.cellPosition.Y + this.cellPosition.Height/2f) - imagePosition.Height/2f); 2166 imagePosition.Y = this.cellPosition.Bottom - imagePosition.Height; 2172 imagePosition.Y = this.cellPosition.Y; 2251 seriesMarkerPosition.Y = (int)((this.cellPosition.Y + this.cellPosition.Height/2f) - seriesMarkerPosition.Height/2f); 2271 seriesMarkerPosition.Y = this.cellPosition.Bottom - seriesMarkerPosition.Height; 2277 seriesMarkerPosition.Y = this.cellPosition.Y; 2315imageScale.Y = (int)((seriesMarkerPosition.Y + seriesMarkerPosition.Height / 2f) - imageScale.Height / 2f);
System.Windows.Forms (181)
misc\GDI\WindowsGraphics2.cs (2)
565adjustedBounds.Y = adjustedBounds.Top + adjustedBounds.Height / 2 - textHeight / 2; 569adjustedBounds.Y = adjustedBounds.Bottom - textHeight;
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (15)
577imageBounds.Y = imageStart.Y + 1; 1141layout.focus.Y++; 1213layout.checkBounds.Y = (field.Y+field.Height)-layout.checkBounds.Height; 1216layout.checkBounds.Y = field.Y + 2; // + 2: this needs to be aligned to the text (bug 87483) 1219layout.checkBounds.Y = field.Y + (field.Height - layout.checkBounds.Height)/2; 1229layout.checkArea.Y = field.Y; 1241layout.checkArea.Y = field.Y; 1250layout.checkArea.Y = field.Y; 1253layout.field.Y += checkSizeFull; 1261layout.checkArea.Y = field.Y + field.Height - checkSizeFull; 1375layout.textBounds.Y = Math.Max(Math.Min(layout.textBounds.Y, layout.field.Y + (layout.field.Height - layout.textBounds.Height)/2), layout.field.Y); 1392layout.textBounds.Y = layout.imageBounds.Y + layout.imageBounds.Height; 1397layout.textBounds.Y--; 1422layout.textBounds.Y = Math.Max(layout.textBounds.Y, maxBounds.Y); 1428layout.textBounds.Y = Math.Max(layout.textBounds.Y, layout.field.Y);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (2)
163fullSize.Y -= 1; 166fullSize.Y -= 2;
winforms\Managed\System\WinForms\Control.cs (1)
9740rectangle.Y++;
winforms\Managed\System\WinForms\ControlPaint.cs (2)
96result.Y = (szCtl.Height - result.Height) / 2; 112result.Y = (bounds.Height - result.Height) /2;
winforms\Managed\System\WinForms\Cursor.cs (1)
416targetRect.Y += (int) graphics.Transform.OffsetY;
winforms\Managed\System\WinForms\DataGrid.cs (22)
4522refresh.Y = cy; 4704r.Y = Math.Min(inside.Bottom - 3, r.Y); 4705r.Y = Math.Max(r.Y , 0); 5078rightArea.Y = top; 5102clip.Y = topEdge + 3; 5150rightArea.Y = top; 5357insideLeft.Y += captionHeight; 5372insideLeft.Y += parentHeight; 5388insideLeft.Y += columnHeaderHeight; 6430cellBounds.Y += GetRowTop(row); 6449rowBounds.Y = GetRowTop(row.RowNumber); 6602columnArea.Y = layout.Data.Y; 6654invalid.Y = GetRowTop(rowNumber); 7201textBounds.X -= 2; textBounds.Y += 2; 7205textBounds.X += 2; textBounds.Y += 2; 7234textBounds.X += 2; textBounds.Y -= 2; 7238textBounds.X -= 2; textBounds.Y -= 2; 7333rc.Y += columnHeaderHeight; 7410rowBounds.Y = boundingRect.Y + cy; 7459boundingRect.Y += cy; 8854underParentRows.Y -= layout.ColumnHeaders.Height; 8892fixupRect.Y -= parentRowsRect.Height;
winforms\Managed\System\WinForms\DataGridCaption.cs (1)
572border.Y = textBounds.Bottom - textPadding;
winforms\Managed\System\WinForms\DataGridColumn.cs (1)
1234rect.Y = dg.GetColumnHeadersRect().Y;
winforms\Managed\System\WinForms\DataGridParentRows.cs (3)
151ret.Y = rectY; 559border.Y = bounds.Bottom - borderWidth; 729rowBounds.Y += rowBounds.Height;
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (5)
230ret.Y = base.Height - this.dgTable.BorderWidth; 645relRect.Y = bounds.Y; 739textBounds.Y += relationshipHeight; 907bounds.Y += owner.dgTable.RelationshipHeight * relationship; 912bounds.Y += rowBounds.Y;
winforms\Managed\System\WinForms\DataGridState.cs (1)
166r.Y += g.ParentRowsBounds.Y;
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
449rectThemeMargins.Y = rectContent.Y;
winforms\Managed\System\WinForms\DataGridViewCell.cs (6)
1065rect.Y = (advancedBorderStyle.Top == DataGridViewAdvancedCellBorderStyle.None) ? 0 : 1; 1068rect.Y++; 4331iconBounds.Y += cellBounds.Y; 4372rectPadding.Y = bounds.Y; 4376rectPadding.Y = bounds.Bottom - cellStyle.Padding.Bottom; 4546borderAndPaddingWidths.Y += cellStyle.Padding.Top;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (2)
1452fullSize.Y--; 1466checkBounds.Y -= 3;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (2)
876valBounds.Y += rectThemeMargins.Y; 920valBounds.Y += DATAGRIDVIEWCOLUMNHEADERCELL_verticalMargin;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (5)
751borderAndPaddingWidths.Y += cellStyle.Padding.Top; 1585rectBottomSection.Y += 21; 2484dropRect.Y--; 2546focusBounds.Y--; 2555focusBounds.Y++;
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
488rectThemeMargins.Y = rectContent.Y;
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (3)
726imgBounds.Y = bounds.Y; 732imgBounds.Y = bounds.Y + (bounds.Height - imgBounds.Height) / 2; 738imgBounds.Y = bounds.Bottom - imgBounds.Height;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (29)
2466clip.Y += minimumColumnHeadersHeight - mouseBarOffset - 1; 2810clip.Y = topEdge + this.Rows.SharedRow(index).GetMinimumHeight(index) - mouseBarOffset - 1; 3058r.Y = Math.Min(inside.Bottom - 3, r.Y); 3059r.Y = Math.Max(r.Y, 0); 4359insideLeft.Y += colHeaders.Height; 4429insideLeft.Y++; 5523rectScrollingArea.Y += frozenVisibleRowsHeight; 6899rect.Y--; 8384columnRect.Y -= this.layout.ColumnHeaders.Height; 14957rightArea.Y--; 17211gridRect.Y--; 17260focusRect.Y -= change; 17285edge.Y += rect.Height - 1; 19773rcBelowRows.Y += this.layout.ColumnHeaders.Height; 19778rcBelowRows.Y++; 19782rcBelowRows.Y += visibleRowsHeight; 19844edge.Y = bounds.Height - borderWidth; 19849edge.Y = 0; 20078rc.Y += columnHeadersHeight; 20142rowBounds.Y = boundingRect.Y + cy; 20194rowBounds.Y = boundingRect.Y + cy; 20383editingZone.Y += totalVisibleFrozenHeight; 20415cellBounds.Y--; 20416cellClip.Y--; 26440rowsRect.Y++; 26451rowsRect.Y += frozenRowsThickness; 26475rowsRect.Y = this.layout.Inside.Y; 29080bottomArea.Y = topEdge; 29137bottomArea.Y = topEdge;
winforms\Managed\System\WinForms\DataGridViewRow.cs (2)
1943rowRect.Y -= this.owner.Height; 1975rowRect.Y += rowRect.Height;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (1)
858valBounds.Y += rectThemeMargins.X;
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (3)
246editingControlBounds.Y += DATAGRIDVIEWTEXTBOXCELL_verticalTextOffsetTop; 293editingControlBounds.Y += (editingControlBounds.Height - preferredHeight) / 2; 298editingControlBounds.Y += editingControlBounds.Height - preferredHeight;
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (1)
293bounds.Y = bounds.Height + bounds.Y + BUTTON_PAD;
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
1194iconBounds.Y -= windowBounds.Y;
winforms\Managed\System\WinForms\Form.cs (5)
1169bounds.Y -= screen.Y; 5874restoredWindowBounds.Y = y; 5889restoreBounds.Y = y; 5996adjustedBounds.Y = Top; 7857r.Y += 1;
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (2)
186boxBounds.Y += font.Height / 2; 208clipMiddle.Y = textBounds.Bottom;
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (1)
288if (!yChangedButNotSpecified) originalBounds.Y = y;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (1)
283remainingBounds.Y += element.Bounds.Height;
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (1)
342value.Y = DisplayRect.Bottom - value.Bottom;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (8)
285withinThis.Y += withinThis.Height - alignThis.Height; 288withinThis.Y += (withinThis.Height - alignThis.Height) / 2; 298withinThis.Y += withinThis.Height - alignThis.Height; 301withinThis.Y += (withinThis.Height - alignThis.Height) / 2; 325rect.Y -= padding.Top; 333rect.Y += padding.Top; 451region2.Y += specifiedContent.Height; 455region1.Y += bounds.Height - specifiedContent.Height;
winforms\Managed\System\WinForms\ListView.cs (1)
4717rectInvalid.X = rectInvalid.Y = 0;
winforms\Managed\System\WinForms\PictureBox.cs (2)
456result.Y += (result.Height - image.Height) / 2; 466result.Y = (ClientRectangle.Height - result.Height) /2;
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
2273rectangle.Y = y - cyDivider;
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
1959rect.Y -= 1;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (4)
2155rect.Y = (row)*(RowHeight+1)+1+ptOurLocation.Y; 2228boundsScroll.Y = 1; 2558drawBounds.Y += 1; 5851newBounds.Y = dragBaseRect.Top + delta;
winforms\Managed\System\WinForms\ScrollableControl.cs (2)
268rect.Y = displayRect.Y; 872 displayRect.Y = y;
winforms\Managed\System\WinForms\SplitContainer.cs (5)
911r.Y = splitterRect.Y - Top; 1537splitterRect.Y = this.Location.Y + SplitterDistanceInternal; 1573r.Y = panel1.Location.Y + splitSize; 1727splitterRect.Y = this.Location.Y; 1734splitterRect.Y = this.Location.Y + SplitterDistanceInternal;
winforms\Managed\System\WinForms\Splitter.cs (3)
456bounds.Y += bounds.Height - splitSize; 669r.Y = bounds.Y + splitSize; 673r.Y = bounds.Y + bounds.Height - splitSize - r.Height;
winforms\Managed\System\WinForms\TabControl.cs (1)
441r.Y -= p.Y;
winforms\Managed\System\WinForms\ToolStrip.cs (3)
861rect.Y += gripheight; 4292gripRectangle.Y = Math.Max(0,displayRect.Top - Grip.Margin.Top); 4306gripRectangle.Y = displayRect.Top - (Grip.GripThickness + Grip.Margin.Bottom);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (5)
139rect.Y += UpScrollButton.Height + UpScrollButton.Margin.Vertical; 510textRectangle.Y = LayoutUtils.VAlign(textRectangle.Size, new Rectangle(Point.Empty, maxItemSize), ContentAlignment.MiddleCenter).Y; 511textRectangle.Y += (textRectangle.Height %2); // if the height is odd, push down by one px, see 339274 for picture 668adjustedLastItemBounds.Y -= deltaToScroll; 689adjustedLastItemBounds.Y -= deltaToScroll;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (3)
1483arrowRect.Y = LayoutUtils.VAlign(arrowRect.Size, ownerItem.ClientBounds, ContentAlignment.MiddleCenter).Y; 1499checkRectangle.Y += (checkRectangle.Height - imageHeight)/2; 1525imageRect.Y = LayoutUtils.VAlign(imageRect.Size, ownerItem.ClientBounds, ContentAlignment.MiddleCenter).Y;
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (1)
125bounds.Y = 0;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (3)
555cachedBounds.Y -= cellOffsets[i]; 967dragBounds.Y = y; 1486dragBounds.Y -= Row.Margin.Top+ ToolStripPanel.Padding.Top +4;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (7)
612bounds.Y += 2; 859endGradient.Y = bounds.Bottom - endGradient.Height; 881endGradient.Y += 1; 1071overflowBoundsFill.Y = overflowBoundsFill.Height - overflowButtonWidth + 1; 1177topLeftShadowRect2.Y += 1; 1185topRightShadowRect2.Y += 1; 1272bounds.Y +=3;
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (1)
269bounds.Y = Math.Max(0,(e.GripBounds.Height - bounds.Height -2/*number of pixels for border*/) / 2);
winforms\Managed\System\WinForms\UpDownBase.cs (5)
827backRect.Y--; 843backRect.Y--; 1574rect.Y += rect.Height; 1615rectDown.Y += rectDown.Height / 2; 1914bounds.Y += bounds.Height;
winforms\Managed\System\WinForms\WinFormsUtils.cs (2)
124bounds.Y = constrainingBounds.Bottom - 1 - bounds.Height; 128bounds.Y = constrainingBounds.Top;
System.Windows.Forms.DataVisualization (21)
Common\General\Legend.cs (10)
483 this._titlePosition.Y += this.GetBorderSize(); 521 this._headerPosition.Y += this.GetBorderSize(); 813 cellPosition.Y += this._cellHeights[columnIndex, index]; 817 cellPosition.Y += itemHalfSpacing.Height * rowIndex * 2 + itemHalfSpacing.Height; 2472 separatorPosition.Y = legendItem.Cells[0].cellPosition.Bottom; 2493 separatorRect.Y += this.GetBorderSize() + this._titlePosition.Height; 4040 legendPosition.Y += /*this.offset.Height + */this.GetBorderSize(); 4101 fillRect.Y -= this._offset.Height; 4272 legendPosition.Y += this.GetBorderSize(); 4316 rect.Y += this._offset.Height;
Common\General\LegendColumns.cs (8)
1448 this.cellPosition.Y += (int)(this.Margins.Top * singleWCharacterSize.Height / 100f); 2146 imagePosition.Y = (int)((this.cellPosition.Y + this.cellPosition.Height/2f) - imagePosition.Height/2f); 2166 imagePosition.Y = this.cellPosition.Bottom - imagePosition.Height; 2172 imagePosition.Y = this.cellPosition.Y; 2251 seriesMarkerPosition.Y = (int)((this.cellPosition.Y + this.cellPosition.Height/2f) - seriesMarkerPosition.Height/2f); 2271 seriesMarkerPosition.Y = this.cellPosition.Bottom - seriesMarkerPosition.Height; 2277 seriesMarkerPosition.Y = this.cellPosition.Y; 2315imageScale.Y = (int)((seriesMarkerPosition.Y + seriesMarkerPosition.Height / 2f) - imageScale.Height / 2f);
WinForm\Utilities\AccessibleObject.cs (1)
317rect.Y = (int)(rect.Y * this._chartScale.Y);
WinForm\Utilities\Printing.cs (2)
256marginPixel.Y = (int)(marginPixel.Y * (ev.Graphics.DpiY / 100.0f)); 271chartPosition.Y += (marginPixel.Height - chartPosition.Height) / 2;
System.Workflow.Activities (4)
Designers\ConditionalDesigner.cs (2)
101diamondRectangle.Y = bounds.Top + TitleHeight + (compositeDesignerTheme.ConnectorSize.Height * 3 / 2 - diamondRectangle.Height) / 2 + 1; 109diamondRectangle.Y = bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height * 3 / 2 + (compositeDesignerTheme.ConnectorSize.Height * 3 / 2 - diamondRectangle.Height) / 2 + 1;
Designers\ListenDesigner.cs (2)
81roundRectangle.Y = bounds.Top + TitleHeight + (compositeDesignerTheme.ConnectorSize.Height * 3 / 2 - roundRectangle.Height) / 2; 86roundRectangle.Y = bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height * 3 / 2 + (compositeDesignerTheme.ConnectorSize.Height * 3 / 2 - roundRectangle.Height) / 2;
System.Workflow.ComponentModel (67)
AuthoringOM\Design\ActivityDesigner.cs (5)
542textRectangle.Y = bounds.Top + (bounds.Height - this.textSize.Height) / 2; 565imageRectangle.Y = bounds.Top + (bounds.Height - DesignerTheme.ImageSize.Height) / 2; 3043smartTagRectangle.Y = rectangle.Top - margin.Height / 2; 3096imageRectangle.Y += margin.Height / 2; 3103dropDownRectangle.Y += margin.Height / 2;
AuthoringOM\Design\ActivityPreviewDesigner.cs (1)
310connectors[0].Y = connectors[0].Y + headerHeight;
AuthoringOM\Design\CompositeActivityDesigner.cs (6)
245expandButtonRectangle.Y += 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height; 247expandButtonRectangle.Y += (anchorSize.Height - expandButtonRectangle.Height) / 2; 313imageRectangle.Y += 2 * margin.Height; 315imageRectangle.Y += textSize.Height + margin.Height; 357textRectangle.Y += 2 * margin.Height; 359textRectangle.Y += (expandButtonSize.Height - textSize.Height) / 2;
AuthoringOM\Design\DesignerHelpers.cs (4)
220rectangle.Y = destination.Top; 222rectangle.Y = destination.Bottom - rectangle.Height; 224rectangle.Y = destination.Top + destination.Height / 2 - rectangle.Height / 2; 555bounds.Y -= inflate.Height;
AuthoringOM\Design\DesignerWidgets.cs (19)
231itemRectangle.Y += margin; 238itemRectangle.Y += margin; itemRectangle.Height -= margin; 481buttonRectangle.Y = this.bounds.Y + this.margin.Height; 491buttonRectangle.Y = this.bounds.Y + this.margin.Height; 497buttonRectangle.Y = this.bounds.Y + this.margin.Height + buttonRectangle.Size.Height + this.itemStrip.Size.Height; 499buttonRectangle.Y = this.bounds.Bottom - buttonRectangle.Size.Height; 716itemRectangle.Y = bounds.Top + this.margin.Height; 721itemRectangle.Y = bounds.Top + (itemIndex * this.itemSize.Height) + ((itemIndex + 1) * this.margin.Height); 1266textRectangle.Y += textVerticalOffset; 1990this.drawItems[i].TabItemRectangle.Y = 0; 1997this.drawItems[i].TabItemRectangle.Y = offset; 2029this.drawItems[i].TabItemRectangle.Y -= offset; 2117textRectangle.Y += imageRectangle.Height + TabMargin; 2538rectangles[j].Y = stripRectangle.Top + itemMargin.Height / 2; 2565itemRectangle.Y = stripRectangle.Top + itemMargin.Height; 2741imageRectangle.Y = itemRectangle.Top + 2; 2832stripRectangle.Y = this.bounds.Y; 2852scrollRectangle.Y = this.bounds.Y + this.bounds.Size.Height / 2 - scrollButtonSize.Height / 2; 3467destnRectangle.Y = this.canvasBounds.Top + this.canvasBounds.Height / 2 - destnRectangle.Height / 2;
AuthoringOM\Design\FreeFormDesigner.cs (2)
936bounds.Y = Math.Min(minRectangle.Top, e.Bounds.Top); 1144enclosingRectangle.Y = leftTop.Y;
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (4)
161scrollIndicatorRectangles[0].Y = (clientRectangle.Height - scrollIndicatorSize.Height) / 2; 166scrollIndicatorRectangles[1].Y = (clientRectangle.Height - scrollIndicatorSize.Height) / 2; 171scrollIndicatorRectangles[2].Y = indicatorMargins.Height; 176scrollIndicatorRectangles[3].Y = clientRectangle.Bottom - indicatorMargins.Height - scrollIndicatorSize.Height;
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (1)
583rectangle.Y = this.borderSize.Height + this.margin.Height;
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (1)
304designerBounds.Y = y + delta;
AuthoringOM\Design\ParallelActivityDesigner.cs (1)
422dropTargetRectangle.Y = parallelConnectorTop;
AuthoringOM\Design\SequentialActivityDesigner.cs (1)
164helpTextRectangle.Y = connectors[0].Top + connectors[0].Height / 2 - this.helpTextSize.Height / 2;
AuthoringOM\Design\SequentialWorkflowHeaderFooter.cs (9)
120bounds.Y = (this.isHeader) ? designerBounds.Top : designerBounds.Bottom - bounds.Height; 141bounds.Y = (this.isHeader) ? designerBounds.Top + margin.Height : designerBounds.Bottom - margin.Height - this.textSize.Height; 167bounds.Y = designerBounds.Top + margin.Height; 168bounds.Y += textRectangle.Height; 169bounds.Y += (textRectangle.Height > 0) ? margin.Height : 0; 173bounds.Y = designerBounds.Bottom - margin.Height; 174bounds.Y -= textRectangle.Height; 175bounds.Y -= (textRectangle.Height > 0) ? margin.Height : 0; 176bounds.Y -= bounds.Height;
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (5)
356textRectangle.Y += (MinHeaderBarHeight - textRectangle.Height) / 2; 370imageRectangle.Y = HeaderBarRectangle.Bottom + WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height; 434bounds.Y = rootDesigner.Location.Y + rootDesigner.TitleHeight + rootDesigner.OptimalHeight; 456imageRectangle.Y = rootDesigner.Location.Y + rootDesigner.TitleHeight + rootDesigner.OptimalHeight; 457imageRectangle.Y += WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height;
AuthoringOM\Design\WorkflowLayouts.cs (6)
286logicalRectangle.Y -= offSet.Height; 294logicalRectangle.Y += offSet.Height; 431insersectedLogicalViewPort.Y = pageLayoutData.LogicalPageBounds.Y + deltaLocation.Y; 466insersectedPhysicalViewPort.Y = pageLayoutData.ViewablePageBounds.Y + deltaLocation.Y; 565viewPortBitmapArea.Y = pageLayoutData.LogicalPageBounds.Y - viewPortData.LogicalViewPort.Y; 671viewPortBitmapArea.Y = intersectedViewPort.Y - viewPortData.LogicalViewPort.Y;
AuthoringOM\Design\WorkflowPrinting.cs (2)
293layoutRectangle.Y = headerFooterPrintData.PageBounds.Top + headerFooterPrintData.HeaderFooterMargins.Top; 298layoutRectangle.Y = headerFooterPrintData.PageBounds.Bottom - headerFooterPrintData.HeaderFooterMargins.Bottom - layoutRectangle.Size.Height;
System.WorkflowServices (3)
System\Workflow\Activities\Design\GradientPanel.cs (2)
85frameRect.Y -= Margin.Top; 136arc.Y = frame.Bottom - diameter;
System\Workflow\ComponentModel\Design\HighlightOverlayGlyph.cs (1)
92arc.Y = frame.Bottom - diameter;
901 references to Y
System.Drawing (66)
commonui\System\Drawing\Advanced\GPRECT.cs (1)
31Y = rect.Y;
commonui\System\Drawing\Advanced\GraphicsPath.cs (4)
803AddArc(rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle); 1169int status = SafeNativeMethods.Gdip.GdipAddPathRectangleI(new HandleRef(this, nativePath), rect.X, rect.Y, 1229AddEllipse(rect.X, rect.Y, rect.Width, rect.Height); 1259AddPie(rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle);
commonui\System\Drawing\Advanced\RectangleF.cs (1)
479return new RectangleF(r.X, r.Y, r.Width, r.Height);
commonui\System\Drawing\Advanced\TextureBrush.cs (2)
166dstRect.Y, 277dstRect.Y,
commonui\System\Drawing\Bitmap.cs (1)
498rect.Y,
commonui\System\Drawing\BufferedGraphicsContext.cs (1)
164this.targetLoc = new Point(targetRectangle.X, targetRectangle.Y);
commonui\System\Drawing\Graphics.cs (19)
1307DrawArc(pen, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle); 1411DrawRectangle(pen, rect.X, rect.Y, rect.Width, rect.Height); 1546DrawEllipse(pen, rect.X, rect.Y, rect.Width, rect.Height); 1607DrawPie(pen, rect.X, rect.Y, rect.Width, rect.Height, startAngle, 2022FillRectangle(brush, rect.X, rect.Y, rect.Width, rect.Height); 2208FillEllipse(brush, rect.X, rect.Y, rect.Width, rect.Height); 2238FillPie(brush, rect.X, rect.Y, rect.Width, rect.Height, startAngle, 2834DrawImage(image, rect.X, rect.Y, rect.Width, rect.Height); 2879DrawImage(image, rect.X, rect.Y); 3029srcRect.Y, 3089destRect.Y, 3093srcRect.Y, 3255srcRect.Y, 3311destRect.Y, 3366destRect.Y, 3958int status = SafeNativeMethods.Gdip.GdipSetClipRectI(new HandleRef(this, this.NativeGraphics), rect.X, rect.Y, 4025int status = SafeNativeMethods.Gdip.GdipSetClipRectI(new HandleRef(this, this.NativeGraphics), rect.X, rect.Y, 4064int status = SafeNativeMethods.Gdip.GdipSetClipRectI(new HandleRef(this, this.NativeGraphics), rect.X, rect.Y, 4355int status = SafeNativeMethods.Gdip.GdipIsVisibleRectI(new HandleRef(this, this.NativeGraphics), rect.X, rect.Y,
commonui\System\Drawing\Icon.cs (2)
433imageY = imageRect.Y; 444targetY = targetRect.Y;
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (1)
84Convert(value.Y, fromUnit, toUnit),
commonui\System\Drawing\Rectangle.cs (29)
100return new Point(X, Y); 202return Y; 230return Y + Height; 264(comp.Y == this.Y) && 278&& left.Y == right.Y 341this.Y <= y && 342y < this.Y + this.Height; 369(this.Y <= rect.Y) && 370((rect.Y + rect.Height) <= (this.Y + this.Height)); 380(((UInt32)Y << 13) | ((UInt32)Y >> 19)) ^ 429this.Y = result.Y; 441int y1 = Math.Max(a.Y, b.Y); 442int y2 = Math.Min(a.Y + a.Height, b.Y + b.Height); 460(rect.Y < this.Y + this.Height) && 461(this.Y < rect.Y + rect.Height); 475int y1 = Math.Min(a.Y, b.Y); 476int y2 = Math.Max(a.Y + a.Height, b.Y + b.Height); 508return "{X=" + X.ToString(CultureInfo.CurrentCulture) + ",Y=" + Y.ToString(CultureInfo.CurrentCulture) +
commonui\System\Drawing\RectangleConverter.cs (2)
129args[nArg++] = intConverter.ConvertToString(context, culture, rect.Y); 142rect.X, rect.Y, rect.Width, rect.Height});
commonui\System\Drawing\Region.cs (1)
966int status = SafeNativeMethods.Gdip.GdipIsVisibleRegionRectI(new HandleRef(this, nativeRegion), rect.X, rect.Y,
misc\GDI\WindowsRegion.cs (2)
135this.nativeHandle = IntSafeNativeMethods.CreateRectRgn(rect.X, rect.Y, rect.X+rect.Width, rect.Y+rect.Height);
System.Web.DataVisualization (11)
Common\General\ChartGraphics.cs (2)
2421 absPositionRounded.Height = (int)Math.Round(absPosition.Bottom) - absPositionRounded.Y; 2560 absPositionRounded.Height = (int)Math.Round(absPosition.Bottom) - absPositionRounded.Y;
Common\General\Legend.cs (1)
530 legendPosition.Y + this._offset.Height + this.GetBorderSize() + this._titlePosition.Height + this._headerPosition.Height,
Common\General\LegendColumns.cs (7)
2146 imagePosition.Y = (int)((this.cellPosition.Y + this.cellPosition.Height/2f) - imagePosition.Height/2f); 2172 imagePosition.Y = this.cellPosition.Y; 2251 seriesMarkerPosition.Y = (int)((this.cellPosition.Y + this.cellPosition.Height/2f) - seriesMarkerPosition.Height/2f); 2277 seriesMarkerPosition.Y = this.cellPosition.Y; 2315imageScale.Y = (int)((seriesMarkerPosition.Y + seriesMarkerPosition.Height / 2f) - imageScale.Height / 2f); 2369 point1.Y = (int)(seriesMarkerPosition.Y + seriesMarkerPosition.Height/2F); 2424 point.Y = (int)(seriesMarkerPosition.Y + seriesMarkerPosition.Height/2f);
WebForm\ChartWebControl.cs (1)
1056graphics.TranslateTransform(position.X, position.Y);
System.Windows.Forms (766)
misc\GDI\WindowsGraphics2.cs (4)
92Point p = new Point(bounds.X+sideLength/2, bounds.Y+sideLength/2); 256bounds.Height = bounds.Height - bounds.Y; 580DrawRectangle(pen, rect.X, rect.Y, rect.Width, rect.Height); 618FillRectangle(brush, rect.X, rect.Y, rect.Width, rect.Height);
misc\GDI\WindowsRegion.cs (2)
135this.nativeHandle = IntSafeNativeMethods.CreateRectRgn(rect.X, rect.Y, rect.X+rect.Width, rect.Y+rect.Height);
winforms\Managed\System\WinForms\AccessibleObject.cs (2)
1364pyTop = bounds.Y; 1380pyTop = bounds.Y;
winforms\Managed\System\WinForms\AxHost.cs (3)
1578if (oldBounds.X == x && oldBounds.Y == y && oldBounds.Width == width && 4615dest.top = source.Y; 4617dest.bottom = source.Height + source.Y;
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (37)
179Point p1 = new Point(bounds.X + bounds.Width - 1, bounds.Y ); // upper inner right. 180Point p2 = new Point(bounds.X , bounds.Y ); // upper left. 181Point p3 = new Point(bounds.X , bounds.Y + bounds.Height - 1 ); // bottom inner left. 182Point p4 = new Point(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1 ); // inner bottom right. 273Point p1 = new Point(bounds.X + bounds.Width - 1, bounds.Y ); // upper inner right. 274Point p2 = new Point(bounds.X , bounds.Y ); // upper left. 275Point p3 = new Point(bounds.X , bounds.Y + bounds.Height - 1 ); // bottom inner left. 276Point p4 = new Point(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1 ); // inner bottom right. 343Point p1 = new Point(bounds.X + bounds.Width - 1, bounds.Y ); // upper inner right. 344Point p2 = new Point(bounds.X , bounds.Y ); // upper left. 345Point p3 = new Point(bounds.X , bounds.Y + bounds.Height - 1 ); // bottom inner left. 346Point p4 = new Point(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1 ); // inner bottom right. 509g.FillRectangle(brush, r.X, r.Y, size, r.Height); 512g.FillRectangle(brush, (r.X + r.Width - size), r.Y, size, r.Height); 515g.FillRectangle(brush, (r.X + size), r.Y, (r.Width - size * 2), size); 518g.FillRectangle(brush, (r.X + size), (r.Y + r.Height - size), (r.Width - size * 2), size); 586graphics.DrawImage(image, imageBounds.X, imageBounds.Y, image.Width, image.Height); 608g.DrawRectangle(pen, r.X, r.Y, r.Width - 1, r.Height - 1); 1130Rectangle textAdjusted = new Rectangle(layout.textBounds.X - 1, layout.textBounds.Y - 1, 1195layout.checkBounds = new Rectangle(client.X, client.Y, checkSizeFull, checkSizeFull); 1213layout.checkBounds.Y = (field.Y+field.Height)-layout.checkBounds.Height; 1216layout.checkBounds.Y = field.Y + 2; // + 2: this needs to be aligned to the text (bug 87483) 1219layout.checkBounds.Y = field.Y + (field.Height - layout.checkBounds.Height)/2; 1229layout.checkArea.Y = field.Y; 1241layout.checkArea.Y = field.Y; 1250layout.checkArea.Y = field.Y; 1261layout.checkArea.Y = field.Y + field.Height - checkSizeFull; 1375layout.textBounds.Y = Math.Max(Math.Min(layout.textBounds.Y, layout.field.Y + (layout.field.Height - layout.textBounds.Height)/2), layout.field.Y); 1376layout.textBounds.Height = textBottom - layout.textBounds.Y; 1392layout.textBounds.Y = layout.imageBounds.Y + layout.imageBounds.Height; 1422layout.textBounds.Y = Math.Max(layout.textBounds.Y, maxBounds.Y); 1428layout.textBounds.Y = Math.Max(layout.textBounds.Y, layout.field.Y); 1430layout.textBounds.Height = bottom - layout.textBounds.Y;
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (1)
98NativeMethods.RECT r = new NativeMethods.RECT(bounds.X, bounds.Y, bounds.Right, bounds.Bottom);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (29)
104 wg.FillRectangle(fieldBrush, new Rectangle(bounds.X + 2, bounds.Y + 2, 8, 8)); 105 wg.FillRectangle(fieldBrush, new Rectangle(bounds.X + 4, bounds.Y + 1, 4, 10)); 106 wg.FillRectangle(fieldBrush, new Rectangle(bounds.X + 1, bounds.Y + 4, 10, 4)); 108 wg.DrawLine(borderPen, new Point(bounds.X + 4, bounds.Y + 0), new Point(bounds.X + 8, bounds.Y + 0)); 109 wg.DrawLine(borderPen, new Point(bounds.X + 4, bounds.Y + 11), new Point(bounds.X + 8, bounds.Y + 11)); 111 wg.DrawLine(borderPen, new Point(bounds.X + 2, bounds.Y + 1), new Point(bounds.X + 4, bounds.Y + 1)); 112 wg.DrawLine(borderPen, new Point(bounds.X + 8, bounds.Y + 1), new Point(bounds.X + 10, bounds.Y + 1)); 114 wg.DrawLine(borderPen, new Point(bounds.X + 2, bounds.Y + 10), new Point(bounds.X + 4, bounds.Y + 10)); 115 wg.DrawLine(borderPen, new Point(bounds.X + 8, bounds.Y + 10), new Point(bounds.X + 10, bounds.Y + 10)); 117 wg.DrawLine(borderPen, new Point(bounds.X + 0, bounds.Y + 4), new Point(bounds.X + 0, bounds.Y + 8)); 118 wg.DrawLine(borderPen, new Point(bounds.X + 11, bounds.Y + 4), new Point(bounds.X + 11, bounds.Y + 8)); 120 wg.DrawLine(borderPen, new Point(bounds.X + 1, bounds.Y + 2), new Point(bounds.X + 1, bounds.Y + 4)); 121 wg.DrawLine(borderPen, new Point(bounds.X + 1, bounds.Y + 8), new Point(bounds.X + 1, bounds.Y + 10)); 123 wg.DrawLine(borderPen, new Point(bounds.X + 10, bounds.Y + 2), new Point(bounds.X + 10, bounds.Y + 4)); 124 wg.DrawLine(borderPen, new Point(bounds.X + 10, bounds.Y + 8), new Point(bounds.X + 10, bounds.Y + 10)); 146Rectangle vCross = new Rectangle (layout.checkBounds.X + GetScaledNumber(offset, scale), layout.checkBounds.Y + GetScaledNumber(offset - 1, scale), GetScaledNumber(2, scale), GetScaledNumber(4, scale)); 148Rectangle hCross = new Rectangle (layout.checkBounds.X + GetScaledNumber(offset - 1, scale), layout.checkBounds.Y + GetScaledNumber(offset, scale), GetScaledNumber(4, scale), GetScaledNumber(2, scale));
winforms\Managed\System\WinForms\CheckedListBox.cs (6)
695bounds.Y + centeringFactor, 712CheckBoxRenderer.DrawCheckBox(e.Graphics, new Point(box.X, box.Y), cbState, HandleInternal); 722bounds.Y, 768textBounds.Y, 850bounds.Y, 1671NativeMethods.POINT pt = new NativeMethods.POINT(rect.X, rect.Y);
winforms\Managed\System\WinForms\ComboBox.cs (9)
5935innerBorder = new Rectangle(outerBorder.X + 1, outerBorder.Y + 1, outerBorder.Width - dropDownButtonWidth - 2, outerBorder.Height - 2); 5936innerInnerBorder = new Rectangle(innerBorder.X + 1, innerBorder.Y + 1, innerBorder.Width - 2, innerBorder.Height - 2); 5937dropDownRect = new Rectangle(innerBorder.Right + 1, innerBorder.Y, dropDownButtonWidth, innerBorder.Height+1); 5996g.DrawRectangle(outerBorderPen, new Rectangle(outerBorder.X, outerBorder.Y, dropDownRect.Width + 1, outerBorder.Height)); 5999g.DrawRectangle(outerBorderPen, new Rectangle(dropDownRect.X, outerBorder.Y, outerBorder.Right - dropDownRect.X, outerBorder.Height)); 6006g.DrawRectangle(outerBorderPen, new Rectangle(outerBorder.X, outerBorder.Y, dropDownRect.Width + 1, outerBorder.Height)); 6009g.DrawRectangle(outerBorderPen, new Rectangle(dropDownRect.X, outerBorder.Y, outerBorder.Right - dropDownRect.X, outerBorder.Height)); 6040g.DrawRectangle(innerPen, new Rectangle(outerBorder.X, outerBorder.Y, dropDownRect.Width + 1, outerBorder.Height)); 6043g.DrawRectangle(innerPen, new Rectangle(dropDownRect.X, outerBorder.Y, outerBorder.Right - dropDownRect.X, outerBorder.Height));
winforms\Managed\System\WinForms\CommonDialog.cs (1)
181int y = screen.Y + (screen.Height - r.bottom + r.top) / 3;
winforms\Managed\System\WinForms\ContextMenuStrip.cs (3)
104if (bounds.Y < screenBounds.Y) { 112Show(bounds.X, bounds.Y);
winforms\Managed\System\WinForms\Control.cs (22)
1376SetBounds(value.X, value.Y, value.Width, value.Height, BoundsSpecified.All); 5813cp.Y -= parentClient.Y; 6158|| targetBounds.X < 0 || targetBounds.Y < 0) { 6180SafeNativeMethods.BitBlt(new HandleRef(destGraphics, desthDC), targetBounds.X, targetBounds.Y, width, height, 6595int sy = bounds.Y; 6616sy = (int)Math.Round(bounds.Y * dy); 7313NativeMethods.RECT rcArea = NativeMethods.RECT.FromXYWH(rc.X, rc.Y, rc.Width, rc.Height); 7322NativeMethods.RECT.FromXYWH(rc.X, rc.Y, rc.Width, 9744e.Graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.Height - 1); 9813np.Graphics.TranslateClip(-shift.X, -shift.Y); 9822np.Graphics.TranslateClip(shift.X, shift.Y); 11061NativeMethods.RECT rect = NativeMethods.RECT.FromXYWH(r.X, r.Y, r.Width, r.Height); 11078NativeMethods.RECT rect = NativeMethods.RECT.FromXYWH(r.X, r.Y, r.Width, r.Height); 11562SetBoundsCore(rawScaledBounds.X, rawScaledBounds.Y, scaledSize.Width, scaledSize.Height, BoundsSpecified.All); 11878y = adjustedBounds.Y; 14520if (locationProperty != null && !locationProperty.IsReadOnly && (bounds.X != this.x || bounds.Y != this.y)) { 14536SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.Height, specified); 18262bounds.Location = new Point(bounds.X, bounds.Y); 18270ioleClientSite.OnPosRectChange(NativeMethods.COMRECT.FromXYWH(bounds.X, bounds.Y, bounds.Width, bounds.Height)); 18362adjustRect.top = posRect.Y; 18364adjustRect.bottom = posRect.Height + posRect.Y; 18406NativeMethods.RECT rcIntersect = NativeMethods.RECT.FromXYWH(intersect.X, intersect.Y, intersect.Width, intersect.Height);
winforms\Managed\System\WinForms\ControlPaint.cs (137)
110if (bounds.Y >= 0) 503g.DrawImage(backgroundImage, imageRect, partOfImageToDraw.X, partOfImageToDraw.Y, partOfImageToDraw.Width, 509Rectangle partOfImageToDraw = new Rectangle(new Point(imageRect.X - imageRectangle.X, imageRect.Y - imageRectangle.Y) 512g.DrawImage(backgroundImage, imageRect, partOfImageToDraw.X, partOfImageToDraw.Y, partOfImageToDraw.Width, 612leftLineTops[leftOffset] = bounds.Y + i + 1; 615rightLineTops[rightOffset] = bounds.Y + i; 619leftLineTops[j] = bounds.Y + i + 1; 622rightLineTops[j] = bounds.Y + i; 627leftLineTops[i] = bounds.Y; 630rightLineTops[i] = bounds.Y; 648leftLineBottoms[leftOffset] = bounds.Y + bounds.Height - i - 1; 651rightLineBottoms[rightOffset] = bounds.Y + bounds.Height - i - 1; 655leftLineBottoms[j] = bounds.Y + bounds.Height - i - 1; 658rightLineBottoms[j] = bounds.Y + bounds.Height - i - 1; 663leftLineBottoms[i] = bounds.Y + bounds.Height - 1; 666rightLineBottoms[i] = bounds.Y + bounds.Height - 1; 681graphics.DrawLine(pen, topLineLefts[i], bounds.Y + i, topLineRights[i], bounds.Y + i); 689graphics.DrawLine(pen, topLineLefts[i], bounds.Y + i, topLineRights[i], bounds.Y + i); 697graphics.DrawLine(pen, topLineLefts[i], bounds.Y + i, topLineRights[i], bounds.Y + i); 706graphics.DrawLine(pen, topLineLefts[i], bounds.Y + i, topLineRights[i], bounds.Y + i); 717graphics.DrawLine(pen, topLineLefts[i], bounds.Y + i, topLineRights[i], bounds.Y + i); 790graphics.DrawLine(pen, bottomLineLefts[i], bounds.Y + bounds.Height - 1 - i, bottomLineRights[i], bounds.Y + bounds.Height - 1 - i); 798graphics.DrawLine(pen, bottomLineLefts[i], bounds.Y + bounds.Height - 1 - i, bottomLineRights[i], bounds.Y + bounds.Height - 1 - i); 806graphics.DrawLine(pen, bottomLineLefts[i], bounds.Y + bounds.Height - 1 - i, bottomLineRights[i], bounds.Y + bounds.Height - 1 - i); 815graphics.DrawLine(pen, bottomLineLefts[i], bounds.Y + bounds.Height - 1 - i, bottomLineRights[i], bounds.Y + bounds.Height - 1 - i); 826graphics.DrawLine(pen, bottomLineLefts[i], bounds.Y + bounds.Height - 1 - i, bottomLineRights[i], bounds.Y + bounds.Height - 1 - i); 896DrawBorder3D(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, Border3DStyle.Etched, 906DrawBorder3D(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, style, 917DrawBorder3D(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, style, sides); 991graphics.DrawLine(pen, bounds.X, bounds.Y, 992bounds.X + bounds.Width - 1, bounds.Y); 993graphics.DrawLine(pen, bounds.X, bounds.Y, 994bounds.X, bounds.Y + bounds.Height - 1); 998graphics.DrawLine(pen, bounds.X, bounds.Y + bounds.Height - 1, 999bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1); 1000graphics.DrawLine(pen, bounds.X + bounds.Width - 1, bounds.Y, 1001bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1); 1005graphics.DrawLine(pen, bounds.X + 1, bounds.Y + 1, 1006bounds.X + bounds.Width - 2, bounds.Y + 1); 1007graphics.DrawLine(pen, bounds.X + 1, bounds.Y + 1, 1008bounds.X + 1, bounds.Y + bounds.Height - 2); 1013graphics.DrawLine(pen, bounds.X + 1, bounds.Y + bounds.Height - 2, 1014bounds.X + bounds.Width - 2, bounds.Y + bounds.Height - 2); 1015graphics.DrawLine(pen, bounds.X + bounds.Width - 2, bounds.Y + 1, 1016bounds.X + bounds.Width - 2, bounds.Y + bounds.Height - 2); 1029graphics.DrawLine(pen, bounds.X, bounds.Y, 1030bounds.X + bounds.Width - 1, bounds.Y); 1031graphics.DrawLine(pen, bounds.X, bounds.Y, 1032bounds.X, bounds.Y + bounds.Height - 1); 1040graphics.DrawLine(pen, bounds.X, bounds.Y + bounds.Height - 1, 1041bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1); 1042graphics.DrawLine(pen, bounds.X + bounds.Width - 1, bounds.Y, 1043bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1); 1056graphics.DrawLine(pen, bounds.X + 1, bounds.Y + 1, 1057bounds.X + bounds.Width - 2, bounds.Y + 1); 1058graphics.DrawLine(pen, bounds.X + 1, bounds.Y + 1, 1059bounds.X + 1, bounds.Y + bounds.Height - 2); 1069graphics.DrawLine(pen, bounds.X + 1, bounds.Y + bounds.Height - 2, 1070bounds.X + bounds.Width - 2, bounds.Y + bounds.Height - 2); 1071graphics.DrawLine(pen, bounds.X + bounds.Width - 2, bounds.Y + 1, 1072bounds.X + bounds.Width - 2, bounds.Y + bounds.Height - 2); 1100graphics.DrawRectangle(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 1112DrawButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, state); 1129DrawCaptionButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, button, state); 1147DrawCheckBox(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, state); 1170DrawComboButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, state); 1197graphics.DrawLine(pen, bounds.X + 1, bounds.Y, bounds.Right -2, bounds.Y); 1199graphics.DrawLine(pen, bounds.X, bounds.Y + 1, bounds.X, bounds.Bottom -2); 1200graphics.DrawLine(pen, bounds.Right - 1, bounds.Y + 1, bounds.Right - 1, bounds.Bottom -2); 1203int midy = bounds.Y + bounds.Height/2; 1206graphics.DrawLine(pen, midx, bounds.Y, midx, bounds.Bottom - 2); 1212graphics.DrawLine(pen, midx - 1, bounds.Y+2, midx+1, bounds.Y+2); 1213graphics.DrawLine(pen, midx - 2, bounds.Y+3, midx+2, bounds.Y+3); 1262Rectangle offsetRectangle = new Rectangle(rectangle.X + 1, rectangle.Y + 1, 1304graphics.DrawRectangle(pen, offsetRectangle.X, offsetRectangle.Y, offsetRectangle.Width - 1, offsetRectangle.Height - 1); 1338(rectangle.X + rectangle.Y) % 2 == 1, 1436Rectangle fillRect = new Rectangle(rectangle.X + 1, rectangle.Y + 1, rectangle.Width - 1, rectangle.Height - 1); 1677graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.Height - 1); 1679graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.Height - 1); 1688graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.Height - 1); 1696DrawMenuGlyph(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, glyph); 1706DrawMenuGlyph(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, glyph, foreColor, backColor); 1733DrawMixedCheckBox(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, state); 1750DrawRadioButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, state); 1801SafeNativeMethods.Rectangle(new HandleRef(null, dc), rectangle.X, rectangle.Y, rectangle.Right, rectangle.Bottom); 1849DrawScrollButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, button, state); 1891DrawSizeGrip(graphics, backColor, bounds.X, bounds.Y, bounds.Width, bounds.Height); 2014SafeNativeMethods.PatBlt(new HandleRef(null, dc), rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, rop3); 2413int y = bound.Y; 2459g.DrawLine(pen, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y); 2460g.DrawLine(pen, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1); 2463g.DrawLine(SystemPens.ControlDark, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1); 2464g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1); 2471bound = new Rectangle(bound.X + 1, bound.Y + 1, bound.Width - 1, bound.Height - 1); 2473g.DrawLine(pen, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y); 2474g.DrawLine(pen, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1); 2477g.DrawLine(SystemPens.ControlDark, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1); 2478g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1); 2482g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y); 2483g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1); 2485g.DrawLine(pen, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1); 2486g.DrawLine(pen, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1); 2496bound = new Rectangle(bound.X + 1, bound.Y + 1, bound.Width - 1, bound.Height - 1); 2497g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y, bound.X + bound.Width - 1, bound.Y); 2498g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1); 2500g.DrawLine(pen, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1); 2501g.DrawLine(pen, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
winforms\Managed\System\WinForms\Cursor.cs (3)
193NativeMethods.RECT rcClip = NativeMethods.RECT.FromXYWH(value.X, value.Y, value.Width, value.Height); 437imageY = imageRect.Y; 448targetY = targetRect.Y;
winforms\Managed\System\WinForms\DataGrid.cs (34)
4061caption.MouseDown(e.X - captionRect.X, e.Y - captionRect.Y); 4302caption.MouseOver(e.X - captionRect.X, e.Y - captionRect.Y); 4479oldClientRectangle.Y, 4483oldClientRectangle.Y + oldClientRectangle.Height - borderWidth, 4491newClientRectangle.Y, 4499newClientRectangle.Y + newClientRectangle.Height - borderWidth, 4704r.Y = Math.Min(inside.Bottom - 3, r.Y); 4705r.Y = Math.Max(r.Y , 0); 4711Rectangle r = new Rectangle(e.X, inside.Y, 3, inside.Height); 5077rightArea.Height -= rightArea.Y - top; 5103clip.Height = layout.Data.Y + layout.Data.Height - topEdge - 2; 5135int y = Math.Min(e.Y, layout.Data.Y + layout.Data.Height + 1); 5149rightArea.Height -= rightArea.Y - top; 5764int cy = layout.Data.Y; 5774rowExclude.Y + cy, 5860SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X, r.Y, r.Width, r.Height, NativeMethods.PATINVERT); 6285Debug.Assert(y >= inside.Y && y < inside.Bottom, "y must be inside the vertical bounds of the data"); 6287int cy = inside.Y; 6316int cy = inside.Y; 6343int offset = layout.Data.Y; 6465int topOfData = layout.Data.Y; 6602columnArea.Y = layout.Data.Y; 6669Rectangle inner = new Rectangle(rowRect.X + r.X, rowRect.Y + r.Y, r.Width, r.Height); 6838int vertScrollBarTop = layout.Data.Y; 6840vertScrollBarTop = layout.ColumnHeaders.Y; 7084Point origin = new Point(0, layout.Data.Y); 7245textBounds.Y, 7303g.FillRectangle(br, bounds.X, bounds.Y, bounds.Width + 2, 2); 7304g.FillRectangle(br, bounds.Right - 2, bounds.Y, 2, bounds.Height + 2); 7306g.FillRectangle(br, bounds.X, bounds.Y, 2, bounds.Height + 2); 7410rowBounds.Y = boundingRect.Y + cy; 8628NativeMethods.RECT scrollArea = NativeMethods.RECT.FromXYWH(rowsRect.X, rowsRect.Y, rowsRect.Width, rowsRect.Height); 8881NativeMethods.RECT scrollRECT = NativeMethods.RECT.FromXYWH(underParentRows.X, underParentRows.Y - layout.ParentRows.Height, underParentRows.Width, underParentRows.Height + layout.ParentRows.Height);
winforms\Managed\System\WinForms\DataGridBoolColumn.cs (2)
157bounds.Y +((bounds.Height - idealCheckSize) / 2), 162Math.Max(0,bounds.Y +((bounds.Height - idealCheckSize) / 2)),
winforms\Managed\System\WinForms\DataGridCaption.cs (5)
435bounds.Y + yOffset + textPadding, 457bounds.Y + yOffset + textPadding, 481bounds.Y + yOffset, 563g.DrawRectangle(this.textBorderPen, textBounds.X, textBounds.Y, textBounds.Width - 1, textBounds.Height - 1); 575border = new Rectangle(textBounds.X, textBounds.Y + textPadding,
winforms\Managed\System\WinForms\DataGridColumn.cs (1)
1234rect.Y = dg.GetColumnHeadersRect().Y;
winforms\Managed\System\WinForms\DataGridParentRows.cs (16)
327Rectangle r = new Rectangle(rect.X, rect.Y, rect.Width + borderWidth, rect.Height + borderWidth); 563border = new Rectangle(bounds.X, bounds.Y + borderWidth, 664layout.leftArrow = new Rectangle(bounds.X, bounds.Y, 15, bounds.Height); 665layout.data = new Rectangle(layout.leftArrow.Right, bounds.Y, bounds.Width - 30, bounds.Height); 666layout.rightArrow = new Rectangle(layout.data.Right, bounds.Y, 15, bounds.Height); 719if (rowBounds.Y > bounds.Bottom) 775int bmpY = bounds.Y + (bounds.Height - b.Height) / 2; 796g.DrawLine(Pens.Black, bounds.X, bounds.Y, bounds.X + bounds.Width, bounds.Y); // the top 797g.DrawLine(Pens.White, bounds.X + bounds.Width, bounds.Y, bounds.X + bounds.Width, bounds.Y + bounds.Height); // the right side 798g.DrawLine(Pens.White, bounds.X + bounds.Width, bounds.Y + bounds.Height, bounds.X, bounds.Y + bounds.Height); // the right side 799g.DrawLine(Pens.Black, bounds.X, bounds.Y + bounds.Height, bounds.X, bounds.Y); // the left side 957paintBounds.Y,
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (17)
612bounds.Y, 624bounds.Y, 645relRect.Y = bounds.Y; 654bounds.Y, 662g.DrawRectangle(SystemPens.ControlText, relRect.X, relRect.Y, relRect.Width - 1, relRect.Height - 1); 668g.FillRectangle(GetBackBrush(), relRect.X, relRect.Y + cy, relRect.Width, relRect.Height - cy); 682bounds.Y, 697bounds.Y, 706g.FillRectangle(GetBackBrush(), bounds.X, bounds.Y, bounds.Width, System.Windows.Forms.DataGridTableStyle.relationshipSpacing); 709Rectangle textBounds = new Rectangle(bounds.X, bounds.Y + System.Windows.Forms.DataGridTableStyle.relationshipSpacing, 749Rectangle outline = GetOutlineRect(bounds.X, bounds.Y); 760g.DrawRectangle(drawPen, outline.X, outline.Y, outline.Width - 1, outline.Height - 1); 765outline.X + indent, outline.Y + outline.Width / 2, 766outline.Right - indent - 1, outline.Y + outline.Width/2); // -1 on the y coordinate 771outline.X + outline.Height/2, outline.Y + indent, 778points[1] = new Point(points[0].X, bounds.Y + 2*indent + base.Height); 912bounds.Y += rowBounds.Y;
winforms\Managed\System\WinForms\DataGridRow.cs (4)
455bottomBorder.Y, 518cellBounds.Y, 529bounds.Y, 562visualBounds.Y + yOffset,
winforms\Managed\System\WinForms\DataGridState.cs (1)
166r.Y += g.ParentRowsBounds.Y;
winforms\Managed\System\WinForms\DataGridToolTip.cs (1)
71toolInfo.rect = NativeMethods.RECT.FromXYWH(iconBounds.X, iconBounds.Y, iconBounds.Width, iconBounds.Height);
winforms\Managed\System\WinForms\DataGridView.cs (1)
5163Invalidate(new Rectangle(this.layout.Inside.X, this.layout.Inside.Y, this.RowHeadersWidth, this.ColumnHeadersHeight));
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (3)
356marginHeights = rectThemeMargins.Y + rectThemeMargins.Height; 449rectThemeMargins.Y = rectContent.Y; 730valBounds.Offset(borderWidths.X, borderWidths.Y);
winforms\Managed\System\WinForms\DataGridViewCell.cs (55)
1255cellValueBounds.Y + (cellValueBounds.Height - iconsHeight) / 2, 3594bounds.Y, 3646graphics.DrawLine(penGridColor, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 3650graphics.DrawLine(penControlDark, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 3654graphics.DrawLine(penControlLightLight, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 3658y1 = bounds.Y + 2; 3669graphics.DrawLine(penBackColor, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 3674y1 = bounds.Y + 1; 3685graphics.DrawLine(penControlDark, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 3690y1 = bounds.Y + 1; 3701graphics.DrawLine(penControlLightLight, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 3709graphics.DrawLine(penGridColor, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1); 3713graphics.DrawLine(penControlLightLight, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1); 3717graphics.DrawLine(penControlDark, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1); 3721y1 = bounds.Y + 2; 3732graphics.DrawLine(penBackColor, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1); 3737y1 = bounds.Y + 1; 3748graphics.DrawLine(penControlDark, bounds.Right - 2, bounds.Y, bounds.Right - 2, bounds.Bottom - 1); 3753y1 = bounds.Y + 1; 3765graphics.DrawLine(penControlLightLight, bounds.Right - 2, bounds.Y, bounds.Right - 2, bounds.Bottom - 1); 3774graphics.DrawLine(penGridColor, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y); 3790graphics.DrawLine(penControlDark, x1, bounds.Y, x2, bounds.Y); 3806graphics.DrawLine(penControlLightLight, x1, bounds.Y, x2, bounds.Y); 3830graphics.DrawLine(penBackColor, x1, bounds.Y, x2, bounds.Y); 3831graphics.DrawLine(penControlLightLight, x1 + 1, bounds.Y, x2 - 1, bounds.Y); 3847graphics.DrawLine(penControlDark, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y); 3848graphics.DrawLine(penControlLightLight, x1, bounds.Y + 1, x2, bounds.Y + 1); 3864graphics.DrawLine(penControlLightLight, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y); 3865graphics.DrawLine(penControlDark, x1, bounds.Y + 1, x2, bounds.Y + 1); 4331iconBounds.Y += cellBounds.Y; 4356rectPadding = new Rectangle(bounds.X, bounds.Y, cellStyle.Padding.Right, bounds.Height); 4365rectPadding = new Rectangle(bounds.X, bounds.Y, cellStyle.Padding.Left, bounds.Height); 4372rectPadding.Y = bounds.Y; 4508this.DataGridView.EditingControl.Location = new Point(editingControlBounds.X, editingControlBounds.Y); 4576if (cellClip.Y - cellBounds.Y >= borderAndPaddingWidths.Y) 4578yEditingPanel = cellClip.Y; 4579hEditingPanel -= cellClip.Y - cellBounds.Y; 4583yEditingPanel = cellBounds.Y + borderAndPaddingWidths.Y; 4584hEditingPanel -= borderAndPaddingWidths.Y; 4596yEditingControl = cellBounds.Y - cellClip.Y; 4597hEditingControl = cellBounds.Height - borderAndPaddingWidths.Y - borderAndPaddingWidths.Height;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (2)
846preferredSize.Height += borderWidths.Y; 1174valBounds.Offset(borderWidths.X, borderWidths.Y);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (4)
707preferredSize.Height += rectThemeMargins.Y + rectThemeMargins.Height; 794valBounds.Offset(borderWidths.X, borderWidths.Y); 876valBounds.Y += rectThemeMargins.Y; 877valBounds.Height -= rectThemeMargins.Y + rectThemeMargins.Height;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (29)
756size.Height - borderAndPaddingWidths.Y - borderAndPaddingWidths.Height); 767y >= borderAndPaddingWidths.Y + 1 && 768y <= borderAndPaddingWidths.Y + 1 + dropHeight) 2147valBounds.Offset(borderWidths.X, borderWidths.Y); 2217g.DrawRectangle(SystemPens.ControlLightLight, new Rectangle(valBounds.X, valBounds.Y, valBounds.Width-1, valBounds.Height-1)); 2367g.DrawLine(pen, dropRect.X, dropRect.Y, 2368dropRect.X + dropRect.Width - 1, dropRect.Y); 2369g.DrawLine(pen, dropRect.X, dropRect.Y, 2370dropRect.X, dropRect.Y + dropRect.Height - 1); 2375g.DrawLine(pen, valBounds.X, valBounds.Y + valBounds.Height - 1, 2376valBounds.X + valBounds.Width - 1, valBounds.Y + valBounds.Height - 1); 2377g.DrawLine(pen, valBounds.X + valBounds.Width - 1, valBounds.Y, 2378valBounds.X + valBounds.Width - 1, valBounds.Y + valBounds.Height - 1); 2389g.DrawLine(pen, dropRect.X, dropRect.Y + dropRect.Height - 1, 2390dropRect.X + dropRect.Width - 1, dropRect.Y + dropRect.Height - 1); 2391g.DrawLine(pen, dropRect.X + dropRect.Width - 1, dropRect.Y, 2392dropRect.X + dropRect.Width - 1, dropRect.Y + dropRect.Height - 1); 2397g.DrawLine(pen, valBounds.X, valBounds.Y, 2398valBounds.X + valBounds.Width - 2, valBounds.Y); 2399g.DrawLine(pen, valBounds.X, valBounds.Y, 2400valBounds.X, valBounds.Y + valBounds.Height - 1); 2413g.DrawLine(pen, dropRect.X + 1, dropRect.Y + 1, 2414dropRect.X + dropRect.Width - 2, dropRect.Y + 1); 2415g.DrawLine(pen, dropRect.X + 1, dropRect.Y + 1, 2416dropRect.X + 1, dropRect.Y + dropRect.Height - 2); 2427g.DrawLine(pen, dropRect.X + 1, dropRect.Y + dropRect.Height - 2, 2428dropRect.X + dropRect.Width - 2, dropRect.Y + dropRect.Height - 2); 2429g.DrawLine(pen, dropRect.X + dropRect.Width - 2, dropRect.Y + 1, 2430dropRect.X + dropRect.Width - 2, dropRect.Y + dropRect.Height - 2);
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (3)
488rectThemeMargins.Y = rectContent.Y; 493rectThemeMargins.Y + rectThemeMargins.Width + rectThemeMargins.Height == 0) 651valBounds.Offset(borderWidths.X, borderWidths.Y);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (6)
643imgBounds = new Rectangle(bounds.X, bounds.Y, imgWidth, imgHeight); 650imgBounds = new Rectangle(bounds.X, bounds.Y, Decimal.ToInt32((decimal)imgWidth * bounds.Height / imgHeight), bounds.Height); 655imgBounds = new Rectangle(bounds.X, bounds.Y, bounds.Width, Decimal.ToInt32((decimal)imgHeight * bounds.Width / imgWidth)); 726imgBounds.Y = bounds.Y; 732imgBounds.Y = bounds.Y + (bounds.Height - imgBounds.Height) / 2; 819valBounds.Offset(borderWidths.X, borderWidths.Y);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
1012valBounds.Offset(borderWidths.X, borderWidths.Y);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (36)
2811clip.Height = this.layout.Data.Y + this.layout.Data.Height - topEdge - 1; 3023inside.Y, 3031r = new Rectangle(mouseX + this.mouseBarOffset - 1, inside.Y, this.Columns[this.trackColumn].Thickness, inside.Height); 3041Rectangle r = new Rectangle(mouseX + this.mouseBarOffset - 1, inside.Y, 3, inside.Height); 3058r.Y = Math.Min(inside.Bottom - 3, r.Y); 3059r.Y = Math.Max(r.Y, 0); 4441Debug.Assert(newLayout.Data.Y >= 0); 5771SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X, r.Y, r.Width, DATAGRIDVIEW_shadowEdgeThickness, NativeMethods.PATINVERT); 5772SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X, r.Y + r.Height - DATAGRIDVIEW_shadowEdgeThickness, r.Width, DATAGRIDVIEW_shadowEdgeThickness, NativeMethods.PATINVERT); 5773SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X, r.Y + DATAGRIDVIEW_shadowEdgeThickness, DATAGRIDVIEW_shadowEdgeThickness, r.Height - 2 * DATAGRIDVIEW_shadowEdgeThickness, NativeMethods.PATINVERT); 5774SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X + r.Width - DATAGRIDVIEW_shadowEdgeThickness, r.Y + DATAGRIDVIEW_shadowEdgeThickness, DATAGRIDVIEW_shadowEdgeThickness, r.Height - 2 * DATAGRIDVIEW_shadowEdgeThickness, NativeMethods.PATINVERT); 5791SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X, r.Y, r.Width, r.Height, NativeMethods.PATINVERT); 6086int delta = y - this.layout.ColumnHeaders.Y - this.ColumnHeadersHeight + 1; 8375columnRect = new Rectangle(cx - displayWidth, data.Y, displayWidth, data.Height); 8379columnRect = new Rectangle(cx, data.Y, displayWidth, data.Height); 9125int cy = data.Y; 9202Debug.Assert(y >= data.Y-1 && y < data.Bottom, "y must be inside the vertical bounds of the data area."); 9204if (y == data.Y-1) 9210int cy = data.Y; 9286int y = this.layout.Data.Y; 10518int vertScrollBarTop = this.layout.Data.Y; 10522vertScrollBarTop = this.layout.ColumnHeaders.Y; 17209if (gridRect.Y == this.layout.Data.Y) 17881oldClientRectangle.Y, 17885oldClientRectangle.Y + oldClientRectangle.Height - borderWidth, 17903newClientRectangle.Y, 17912newClientRectangle.Y + newClientRectangle.Height - borderWidth, 17922oldGridFocusRectangle.Y, 17928oldGridFocusRectangle.Y + oldGridFocusRectangle.Height - 1, 20142rowBounds.Y = boundingRect.Y + cy; 20194rowBounds.Y = boundingRect.Y + cy; 26470NativeMethods.RECT scrollArea = NativeMethods.RECT.FromXYWH(rowsRect.X, rowsRect.Y, rowsRect.Width, rowsRect.Height); 26475rowsRect.Y = this.layout.Inside.Y; 29079bottomArea.Height -= bottomArea.Y - topEdge; 29136bottomArea.Height -= bottomArea.Y - topEdge;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (5)
674borderAndPaddingWidths += rectThemeMargins.Y; 786valBounds.Offset(borderWidths.X, borderWidths.Y); 854valBounds.X += rectThemeMargins.Y; 856valBounds.Width -= rectThemeMargins.Y + rectThemeMargins.Height; 1135bounds.Y + (bounds.Height - iconsHeight)/2,
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (2)
697valBounds.Offset(borderWidths.X, borderWidths.Y); 824this.DataGridView.EditingControl.Location = new Point(editingControlBounds.X, editingControlBounds.Y);
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (10)
276valBounds.Offset(borderWidths.X, borderWidths.Y); 410graphics.DrawLine(penControlDark, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 411graphics.DrawLine(penControlDark, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y); 417graphics.DrawLine(penControlLightLight, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 418graphics.DrawLine(penControlLightLight, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y); 424graphics.DrawLine(penControlDark, bounds.X + 1, bounds.Y + 1, bounds.X + 1, bounds.Bottom - 1); 425graphics.DrawLine(penControlDark, bounds.X + 1, bounds.Y + 1, bounds.Right - 1, bounds.Y + 1);
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (6)
390ptTextLocation.Y = cellBounds.Y; 395ptTextLocation.Y = cellBounds.Y; 400ptTextLocation.Y = cellBounds.Y; 405ptTextLocation.Y = cellBounds.Y + (cellBounds.Height - sizeText.Height) / 2; 410ptTextLocation.Y = cellBounds.Y + (cellBounds.Height - sizeText.Height) / 2; 415ptTextLocation.Y = cellBounds.Y + (cellBounds.Height - sizeText.Height) / 2;
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (1)
293bounds.Y = bounds.Height + bounds.Y + BUTTON_PAD;
winforms\Managed\System\WinForms\DrawListViewColumnHeaderEventArgs.cs (4)
178graphics.DrawLine(SystemPens.ControlLightLight, r.X, r.Y, r.Right, r.Y); 179graphics.DrawLine(SystemPens.ControlLightLight, r.X, r.Y, r.X, r.Bottom); 184graphics.DrawLine(SystemPens.ControlDark, r.Right, r.Y + 1, r.Right, r.Bottom);
winforms\Managed\System\WinForms\DrawListViewItemEventArgs.cs (1)
173resultBounds = new Rectangle(originalBounds.X, originalBounds.Y, textSize.Width, textSize.Height);
winforms\Managed\System\WinForms\ErrorProvider.cs (8)
997windowBounds.Y, 1074SafeNativeMethods.DrawIconEx(new HandleRef(this, mirrordc.Hdc), bounds.X - windowBounds.X, bounds.Y - windowBounds.Y, new HandleRef(provider.Region, provider.Region.IconHandle), bounds.Width, bounds.Height, 0, NativeMethods.NullHandleRef, NativeMethods.DI_NORMAL); 1194iconBounds.Y -= windowBounds.Y; 1215iconRegion.Region.Translate(iconBounds.X, iconBounds.Y); 1217iconRegion.Region.Translate(-iconBounds.X, -iconBounds.Y); 1226toolInfo.rect = NativeMethods.RECT.FromXYWH(iconBounds.X, iconBounds.Y, iconBounds.Width, iconBounds.Height); 1278SafeNativeMethods.SetWindowPos(new HandleRef(this, Handle), NativeMethods.HWND_TOP, windowBounds.X, windowBounds.Y,
winforms\Managed\System\WinForms\Form.cs (20)
1169bounds.Y -= screen.Y; 1174SetDesktopBounds(value.X, value.Y, value.Width, value.Height); 1193loc.Y -= screen.Y; 2209&& restoreBounds.Y == -1) { 4024cp.Y = Math.Max(clientRect.Y,clientRect.Y + (clientRect.Height - cp.Height)/2); 4040cp.Y = Math.Max(screenRect.Y,screenRect.Y + (screenRect.Height - cp.Height)/2); 4467if (p.Y < screenRect.Y) 4468p.Y = screenRect.Y; 4469else if (p.Y + s.Height > screenRect.Y + screenRect.Height) 4470p.Y = screenRect.Y + screenRect.Height - s.Height; 4508p.Y = Math.Max(screenRect.Y,screenRect.Y + (screenRect.Height - Height)/2); 5684SetBounds(restoredWindowBounds.X, restoredWindowBounds.Y, 5939base.SetBoundsCore(adjustedBounds.X, adjustedBounds.Y, adjustedBounds.Width, adjustedBounds.Height, BoundsSpecified.All); 6054SetBounds(x + workingArea.X, y + workingArea.Y, width, height, BoundsSpecified.All); 6063Location = new Point(workingArea.X + x, workingArea.Y + y); 7218mmi.ptMaxPosition.y = maximizedBounds.Y; 7858toolInfo.rect = NativeMethods.RECT.FromXYWH(r.X, r.Y, r.Width, r.Height);
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (2)
211Debug.Assert(textBounds.Y <= boxBounds.Y, "if text below box, need to render area of box above text");
winforms\Managed\System\WinForms\HScrollProperties.cs (1)
53return ParentControl.DisplayRectangle.Y;
winforms\Managed\System\WinForms\Label.cs (6)
1090int yLoc = r.Y + 2; 1101yLoc = (r.Y+r.Height - 4)-pointImageSize.Height; 1104yLoc = r.Y + 2; 1107yLoc = r.Y + (r.Height - pointImageSize.Height)/2; 1196ControlPaint.DrawImageDisabled(g, image, loc.X, loc.Y, BackColor); 1199g.DrawImage(image, loc.X, loc.Y, image.Width, image.Height);
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (1)
280bool yChangedButNotSpecified = ((specified & BoundsSpecified.Y) == BoundsSpecified.None) & y != originalBounds.Y;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (10)
137int top = layout.Top + displayRect.Y; 139int bottom = layout.Bottom + displayRect.Y; 207if (bottom < top || cachedBounds.Height != element.Bounds.Height || cachedBounds.Y != element.Bounds.Y) { 278Rectangle newElementBounds = new Rectangle(remainingBounds.X, remainingBounds.Y, elementSize.Width, elementSize.Height); 300Rectangle newElementBounds = new Rectangle(remainingBounds.X, remainingBounds.Y, elementSize.Width, elementSize.Height); 311Rectangle newElementBounds = new Rectangle(remainingBounds.Right - elementSize.Width, remainingBounds.Y, elementSize.Width, elementSize.Height); 326Rectangle newElementBounds = new Rectangle(remainingBounds.X, remainingBounds.Y, elementSize.Width, elementSize.Height); 577anchorInfo.Top -= parentDisplayRect.Y; 579anchorInfo.Bottom -= parentDisplayRect.Y;
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (4)
119Rectangle measureBounds = new Rectangle(displayRect.X, displayRect.Y, displayRect.Width, displayRect.Height - layoutSize.Height); 130layoutSize.Height + displayRect.Y, 352Point pt = new Point(value.X, value.Y); 427Point pt = new Point(newBounds.X, newBounds.Y);
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (8)
227if (rect1.Y <= rect2.Y && rect1.Y + rect1.Width >= rect2.Y + rect2.Width) { 231if (rect2.Y <= rect1.Y && rect2.Y + rect2.Width >= rect1.Y + rect1.Width) {
winforms\Managed\System\WinForms\LinkLabel.cs (3)
520yLoc = clientRect.Y; 532yLoc = clientRect.Y; 702clientRectWithPadding.Y,
winforms\Managed\System\WinForms\ListView.cs (1)
4716rectInvalid.Height += rectInvalid.Y;
winforms\Managed\System\WinForms\MDIClient.cs (2)
213int sy = (int)Math.Round(bounds.Y * dy); 215int sh = (int)Math.Round((bounds.Y + bounds.Height) * dy - sy);
winforms\Managed\System\WinForms\NativeMethods.cs (1)
4037this.top = r.Y;
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
749NativeMethods.RECT scroll = NativeMethods.RECT.FromXYWH(rect.X, rect.Y, rect.Width, rect.Height);
winforms\Managed\System\WinForms\PropertyGrid.cs (7)
2334cyNew = Math.Min((rectTarget.Y + rectTarget.Height - 15),cyNew); 2348ControlPaint.DrawReversibleLine(new Point(rc.X+i, rc.Y), new Point(rc.X+i, rc.Y+rc.Height), ctlDrawTo.BackColor); 2353ControlPaint.DrawReversibleLine(new Point(rc.X, rc.Y+i), new Point(rc.X+rc.Width, rc.Y+i), ctlDrawTo.BackColor); 3199if (dividerMoveY != rectDoc.Y) { 3200int yNew = rectDoc.Height + rectDoc.Y - dividerMoveY - (cyDivider / 2); // we subtract two so the mouse is still over the divider
winforms\Managed\System\WinForms\PropertyGridInternal\CategoryGridEntry.cs (5)
216Rectangle focusRect = new Rectangle(indent, rect.Y, labelWidth+3, rect.Height-1); 229g.DrawLine(topLinePen, rect.X - 1, rect.Y - 1, rect.Width + 2, rect.Y - 1); 240g.DrawLine(topLinePen, rect.X - 2, rect.Y - 1, rect.Width + 1, rect.Y - 1);
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (15)
1891g.FillRectangle(blank, borderWidth-1, rect.Y, totalWidth-borderWidth+3, rect.Height); 1895g.DrawLine(linePen, totalWidth, rect.Y, totalWidth, rect.Height); 1907g.FillRectangle(blank, rect.X, rect.Y, rect.Width, rect.Height); 1912g.FillRectangle(stripeBrush, rect.X, rect.Y, borderWidth, rect.Height); 1915g.FillRectangle(gridHost.GetSelectedItemWithFocusBackBrush(g), stringX, rect.Y, rect.Width - stringX - 1, rect.Height); 1919Rectangle textRect = new Rectangle(stringX, rect.Y + 1, maxSpace, rect.Height - 1); 1952this.labelTipPoint = new Point(stringX+2, rect.Y+1); 2063g.DrawRectangle(p, outline.X, outline.Y, outline.Width - 1, outline.Height - 1); 2067g.DrawLine(p, outline.X + indent,outline.Y + outline.Height / 2, 2068outline.X + outline.Width - indent - 1,outline.Y + outline.Height/2); 2072g.DrawLine(p, outline.X + outline.Width/2, outline.Y + indent, 2073outline.X + outline.Width/2, outline.Y + outline.Height - indent - 1); 2140Rectangle rectPaint = new Rectangle(rect.X + 1, rect.Y + 1, gridHost.GetValuePaintWidth(), gridHost.GetGridEntryHeight() - 2); 2199IntNativeMethods.RECT lpRect = IntNativeMethods.RECT.FromXYWH(rect.X + (int)m.OffsetX + 2, rect.Y + (int)m.OffsetY - 1, rect.Width - 4, rect.Height); 2248this.ValueToolTipLocation = new Point(rect.X+2, rect.Y-1);
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
180NativeMethods.RECT rect = NativeMethods.RECT.FromXYWH(itemRect.X, itemRect.Y, itemRect.Width, itemRect.Height);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (18)
557Point pt = PointToScreen( new Point( rect.X, rect.Y ) ); 790NativeMethods.POINT pt = new NativeMethods.POINT(rect.X, rect.Y); 1060ctl.SetBounds(rectTarget.X,rectTarget.Y, 1275Point newOrigin = new Point(rect.X, rect.Y); 1318Point newOrigin = new Point(r.X, r.Y); 1586return(r.Y << 16 | (r.X & 0xFFFF)); 1643loc.Y += rect.Y; 1644if (rectScreen.Y + rectScreen.Height < (size.Height + loc.Y + Edit.Height)) { 1722loc.Y += rect.Y; 1723if (rectScreen.Y + rectScreen.Height < (size.Height + loc.Y + Edit.Height)) { 2263rect.Height = (Size.Height - rect.Y) - 1; 3207gridEntry.OnMouseClick(me.X - r.X, me.Y - r.Y, me.Clicks, me.Button); 3263if (onLabel && gridItem.GetLabelToolTipLocation(me.X - itemRect.X, me.Y - itemRect.Y) != InvalidPoint) { 3461Point posStart = FindPosition(clipRect.X, clipRect.Y); 3462Point posEnd = FindPosition(clipRect.X, clipRect.Y + clipRect.Height); 3536yPos = rect.Y + rect.Height; 4429rect.Y, 5300tipPt = curEntry.GetLabelToolTipLocation(mouseLoc.X - itemRect.X, mouseLoc.Y - itemRect.Y);
winforms\Managed\System\WinForms\Screen.cs (1)
328NativeMethods.RECT rc = NativeMethods.RECT.FromXYWH(rect.X, rect.Y, rect.Width, rect.Height);
winforms\Managed\System\WinForms\ScrollableControl.cs (31)
186return new Point(rect.X, rect.Y); 268rect.Y = displayRect.Y; 558int ctlBottom = -display.Y + bounds.Y + bounds.Height + scrollMargin.Height; 644displayRect = new Rectangle(displayRect.X, displayRect.Y, this.HorizontalScroll.Maximum, this.displayRect.Height); 647displayRect = new Rectangle(displayRect.X, displayRect.Y, this.displayRect.Width, this.VerticalScroll.Maximum); 710int pos = -displayRect.Y; 731SetDisplayRectLocation(-pos, displayRect.Y); 867 if (displayRectangle.Y != y) 869 yDelta = y - displayRectangle.Y; 876NativeMethods.RECT rcClip = NativeMethods.RECT.FromXYWH(cr.X, cr.Y, cr.Width, cr.Height); 877NativeMethods.RECT rcUpdate = NativeMethods.RECT.FromXYWH(cr.X, cr.Y, cr.Width, cr.Height); 947int yCalc = displayRect.Y; 970if (bounds.Y < yMargin) { 971yCalc = displayRect.Y + yMargin - bounds.Y; 973else if (bounds.Y + bounds.Height + yMargin > client.Height) { 975yCalc = client.Height - (bounds.Y + bounds.Height + yMargin - displayRect.Y); 977if (bounds.Y + yCalc - displayRect.Y < yMargin) { 978yCalc = displayRect.Y + yMargin - bounds.Y; 1090int y = displayRect.Y; 1147int y = displayRect.Y; 1260if (-displayRect.Y >= VerticalScroll.minimum && -displayRect.Y < VerticalScroll.maximum) { 1261VerticalScroll.value = -displayRect.Y; 1274VerticalScroll.Value = -displayRect.Y; 1314int pos = -displayRect.Y; 1445SetDisplayRectLocation(-pos, displayRect.Y);
winforms\Managed\System\WinForms\SplitContainer.cs (9)
858OnSplitterMoved(new SplitterEventArgs(SplitterRectangle.X + SplitterRectangle.Width/2, SplitterRectangle.Y + SplitterRectangle.Height/2, SplitterRectangle.X, SplitterRectangle.Y)); 911r.Y = splitterRect.Y - Top; 1181int ySplit = r.Y; 1182SplitterCancelEventArgs se = new SplitterCancelEventArgs(this.Left + SplitterRectangle.X + SplitterRectangle.Width/2, this.Top + SplitterRectangle.Y + SplitterRectangle.Height/2, xSplit, ySplit); 1285int ySplit = r.Y; 1639SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X, r.Y, r.Width, r.Height, NativeMethods.PATINVERT); 2383return new Rectangle(containerRectangle.X + splitterRectangle.X, containerRectangle.Y + splitterRectangle.Y, splitterRectangle.Width, splitterRectangle.Height);
winforms\Managed\System\WinForms\Splitter.cs (5)
669r.Y = bounds.Y + splitSize; 673r.Y = bounds.Y + bounds.Height - splitSize - r.Height; 776SafeNativeMethods.PatBlt(new HandleRef(ParentInternal, dc), r.X, r.Y, r.Width, r.Height, NativeMethods.PATINVERT); 895int ySplit = r.Y; 911int ySplit = r.Y;
winforms\Managed\System\WinForms\StatusBar.cs (1)
1888ti.rect = NativeMethods.RECT.FromXYWH(tool.rect.X, tool.rect.Y, tool.rect.Width, tool.rect.Height);
winforms\Managed\System\WinForms\TabControl.cs (1)
414NativeMethods.RECT rect = NativeMethods.RECT.FromXYWH(bounds.X, bounds.Y, bounds.Width, bounds.Height);
winforms\Managed\System\WinForms\TableLayoutPanel.cs (10)
430int starty = displayRect.Y + (cellBorderWidth / 2); 439Rectangle insideCellBounds = new Rectangle(outsideCellBounds.X + (cellBorderWidth + 1) / 2, outsideCellBounds.Y + (cellBorderWidth + 1)/ 2, outsideCellBounds.Width - (cellBorderWidth + 1) / 2, outsideCellBounds.Height - (cellBorderWidth + 1) / 2); 464Rectangle tableBounds = new Rectangle(cellBorderWidth/2 + displayRect.X, cellBorderWidth/2 + displayRect.Y, displayRect.Width - cellBorderWidth, displayRect.Height - cellBorderWidth); 468g.DrawLine(SystemPens.ControlDark, tableBounds.Right, tableBounds.Y, tableBounds.Right, tableBounds.Bottom); 469g.DrawLine(SystemPens.ControlDark, tableBounds.X, tableBounds.Y + tableBounds.Height - 1, tableBounds.X + tableBounds.Width - 1, tableBounds.Y + tableBounds.Height - 1); 473g.DrawLine(pen, tableBounds.X + tableBounds.Width - 1, tableBounds.Y, tableBounds.X + tableBounds.Width - 1, tableBounds.Y + tableBounds.Height - 1); 474g.DrawLine(pen, tableBounds.X, tableBounds.Y + tableBounds.Height - 1, tableBounds.X + tableBounds.Width - 1, tableBounds.Y + tableBounds.Height - 1);
winforms\Managed\System\WinForms\TabPage.cs (2)
718Rectangle rectWithBorder = new Rectangle(inflateRect.X - 4, inflateRect.Y - 2, inflateRect.Width + 8, inflateRect.Height + 6); 747base.SetBoundsCore (r.X, r.Y, r.Width, r.Height, specified == BoundsSpecified.None ? BoundsSpecified.None : BoundsSpecified.All);
winforms\Managed\System\WinForms\ToolBar.cs (1)
1736if (leftTop.y < SystemInformation.WorkingArea.Y) {
winforms\Managed\System\WinForms\ToolStrip.cs (14)
269CommonProperties.UpdateSpecifiedBounds(this, bounds.X, bounds.Y, bounds.Width, bounds.Height, BoundsSpecified.Location); 2345selectedItem.Bounds.Y + selectedItem.Height / 2); 2848SafeNativeMethods.BitBlt(new HandleRef(this, desthDC), bounds.X, bounds.Y, bounds.Width, bounds.Height, 3724clippingRect.Offset(-bounds.X, -bounds.Y); 3728SafeNativeMethods.BitBlt(itemHDC, 0, 0, item.Size.Width, item.Size.Height, toolStripHDC, item.Bounds.X, item.Bounds.Y, NativeMethods.SRCCOPY); 3736SafeNativeMethods.BitBlt(toolStripHDC, item.Bounds.X, item.Bounds.Y, item.Size.Width, item.Size.Height, itemHDC, 0, 0, NativeMethods.SRCCOPY); 3942new Point[] { new Point(verticalBeamStart, lastInsertionMarkRect.Y), new Point(verticalBeamStart, lastInsertionMarkRect.Bottom-1), // first vertical line 3943 new Point(verticalBeamStart+1, lastInsertionMarkRect.Y), new Point(verticalBeamStart+1, lastInsertionMarkRect.Bottom-1), //second vertical line 3952new Point[] { new Point(start, lastInsertionMarkRect.Y), new Point(start + widthOfBeam-1, lastInsertionMarkRect.Y), //top line 3953 new Point(start+1, lastInsertionMarkRect.Y+1), new Point(start + widthOfBeam-2, lastInsertionMarkRect.Y+1)//top second line 3959int start = lastInsertionMarkRect.Y; 4783SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.Height, specified);
winforms\Managed\System\WinForms\ToolStripControlHost.cs (3)
58CommonProperties.UpdateSpecifiedBounds(c, bounds.X, bounds.Y, bounds.Width, bounds.Height); 475CommonProperties.UpdateSpecifiedBounds(control, specifiedBounds.X, specifiedBounds.Y, specifiedBounds.Width, specifiedBounds.Height); 485CommonProperties.UpdateSpecifiedBounds(control, bounds.X, bounds.Y, bounds.Width, bounds.Height);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1444SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.Height, BoundsSpecified.Location); 1761base.SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.Height, specified);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (4)
510textRectangle.Y = LayoutUtils.VAlign(textRectangle.Size, new Rectangle(Point.Empty, maxItemSize), ContentAlignment.MiddleCenter).Y; 524if (displayRect.Y > nextItem.Bounds.Top) { 525delta = nextItem.Bounds.Top - displayRect.Y; 528delta = nextItem.Bounds.Bottom - (displayRect.Y + displayRect.Height);
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (12)
145 g.DrawRectangle(SystemPens.ButtonHighlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 150 g.DrawRectangle(SystemPens.ButtonHighlight, bounds.X, bounds.Y, bounds.Width-1, bounds.Height -1); 233 g.DrawRectangle(SystemPens.ButtonHighlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 245 g.DrawRectangle(SystemPens.ButtonShadow, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 267 g.DrawLine(p, bounds.X + indent, bounds.Y, bounds.Width - 1, bounds.Y); 272 g.DrawLine(p, bounds.X, bounds.Y + indent, bounds.X, bounds.Height - 1); 274 g.DrawLine(p, bounds.Width - 1, bounds.Y + indent, bounds.Width - 1, bounds.Height - 1); 399g.DrawRectangle(SystemPens.Highlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 402g.DrawRectangle(SystemPens.ControlLight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 427 g.DrawRectangle(SystemPens.ControlLight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 432 g.DrawRectangle(SystemPens.ControlLight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
winforms\Managed\System\WinForms\ToolStripItem.cs (2)
1120SetBounds(currentBounds.X, currentBounds.Y, currentBounds.Width, value); 2450SetBounds(currentBounds.X, currentBounds.Y, value, currentBounds.Height);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (2)
1483arrowRect.Y = LayoutUtils.VAlign(arrowRect.Size, ownerItem.ClientBounds, ContentAlignment.MiddleCenter).Y; 1525imageRect.Y = LayoutUtils.VAlign(imageRect.Size, ownerItem.ClientBounds, ContentAlignment.MiddleCenter).Y;
winforms\Managed\System\WinForms\ToolStripOverflow.cs (1)
101SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.Height, specified);
winforms\Managed\System\WinForms\ToolStripPanel.cs (8)
1083Point endLocation = (Orientation == Orientation.Horizontal) ? new Point (clientLocation.X, row.Bounds.Y) : new Point (row.Bounds.X, clientLocation.Y); 1111clientLocation.Y = row.Bounds.Y; 1579if (one.Bounds.Y < two.Bounds.Y) { 1596if (one.Bounds.Y < two.Bounds.Y) { 1600if (one.Bounds.Y == two.Bounds.Y) {
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (1)
69Debug.Assert(cachedBounds.X >= 0 && cachedBounds.Y >= 0, "cached bounds are outside of the client area, investigate");
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (3)
964int y = previousRowBounds.Y + previousRowBounds.Height - (previousRowBounds.Height >> 2); 966dragBounds.Height += dragBounds.Y - y; 1824if (cell.Bounds.Y >= locationToDrag.Y) {
winforms\Managed\System\WinForms\ToolStripProfessionalLowResolutionRenderer.cs (4)
53g.DrawLine(p, bounds.X + indent, bounds.Y, bounds.Width - 1, bounds.Y); 58g.DrawLine(p, bounds.X, bounds.Y + indent, bounds.X, bounds.Height - 1); 60g.DrawLine(p, bounds.Width - 1, bounds.Y + indent, bounds.Width - 1, bounds.Height - 1);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (13)
183overflowArrowRect.Y - ToolStripRenderer.Offset2Y, 185overflowArrowRect.Y - ToolStripRenderer.Offset2Y); 188overflowArrowRect.Y - ToolStripRenderer.Offset2Y + 1, 190overflowArrowRect.Y - ToolStripRenderer.Offset2Y + 1); 335g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 347g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 523g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 566g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 921g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 931g.DrawRectangle(SystemPens.Highlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 947g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 1039g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 1396g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (1)
368itemLocation.Y = bounds.Y;
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (1)
413g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
winforms\Managed\System\WinForms\TrackBar.cs (1)
462SetBounds(r.X, r.Y, r.Height, r.Width, BoundsSpecified.All);
winforms\Managed\System\WinForms\TrackBarRenderer.cs (4)
165visualStyleRenderer.DrawEdge(g, new Rectangle(bounds.X, bounds.Y, lineWidth, bounds.Height), Edges.Left, edgeStyle, EdgeEffects.None); 174visualStyleRenderer.DrawEdge(g, new Rectangle((int)Math.Round(x), bounds.Y, lineWidth, bounds.Height), Edges.Left, edgeStyle, EdgeEffects.None); 196visualStyleRenderer.DrawEdge(g, new Rectangle(bounds.X, bounds.Y, bounds.Width, lineWidth), Edges.Top, edgeStyle, EdgeEffects.None); 204float y = bounds.Y + ((float)(numTicks - 1)) * inc;
winforms\Managed\System\WinForms\TreeView.cs (2)
2827Point textLoc = new Point(bounds.X -1, bounds.Y); // required to center the text 3392client = new Point(treeNode.Bounds.X , treeNode.Bounds.Y + treeNode.Bounds.Height / 2);
winforms\Managed\System\WinForms\Triangle.cs (2)
111bounds.Y +(bounds.Height - updnWidth)/2); 117bounds.Y +(bounds.Height - lrHeight)/2);
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (2)
307lprcPosRect.top = this.Host.Bounds.Y; 309lprcPosRect.bottom = this.Host.Bounds.Height + this.Host.Bounds.Y;
System.Windows.Forms.DataVisualization (14)
Common\General\ChartGraphics.cs (2)
2421 absPositionRounded.Height = (int)Math.Round(absPosition.Bottom) - absPositionRounded.Y; 2560 absPositionRounded.Height = (int)Math.Round(absPosition.Bottom) - absPositionRounded.Y;
Common\General\Legend.cs (1)
530 legendPosition.Y + this._offset.Height + this.GetBorderSize() + this._titlePosition.Height + this._headerPosition.Height,
Common\General\LegendColumns.cs (7)
2146 imagePosition.Y = (int)((this.cellPosition.Y + this.cellPosition.Height/2f) - imagePosition.Height/2f); 2172 imagePosition.Y = this.cellPosition.Y; 2251 seriesMarkerPosition.Y = (int)((this.cellPosition.Y + this.cellPosition.Height/2f) - seriesMarkerPosition.Height/2f); 2277 seriesMarkerPosition.Y = this.cellPosition.Y; 2315imageScale.Y = (int)((seriesMarkerPosition.Y + seriesMarkerPosition.Height / 2f) - imageScale.Height / 2f); 2369 point1.Y = (int)(seriesMarkerPosition.Y + seriesMarkerPosition.Height/2F); 2424 point.Y = (int)(seriesMarkerPosition.Y + seriesMarkerPosition.Height/2f);
WinForm\Utilities\AccessibleObject.cs (1)
317rect.Y = (int)(rect.Y * this._chartScale.Y);
WinForm\Utilities\Printing.cs (3)
153 graphics.TranslateTransform(position.X, position.Y); 256marginPixel.Y = (int)(marginPixel.Y * (ev.Graphics.DpiY / 100.0f)); 261Rectangle chartPosition = new Rectangle(marginPixel.X, marginPixel.Y, _chartImage.Width, _chartImage.Height);
System.Workflow.Activities (2)
Designers\StateDesigner.Layouts.cs (2)
512int midVert = layoutBounds.Y + (layoutBounds.Height / 2); 523int midVert = layoutBounds.Y + (layoutBounds.Height / 2);
System.Workflow.ComponentModel (41)
AuthoringOM\Design\ActivityPreviewDesigner.cs (1)
310connectors[0].Y = connectors[0].Y + headerHeight;
AuthoringOM\Design\DesignerHelpers.cs (5)
193graphics.DrawImage(image, imageRectangle, source.X, source.Y, source.Width, source.Height, GraphicsUnit.Pixel, imageAttributes); 333gridStart.Y = viewableRectangle.Y - (viewableRectangle.Y % ambientTheme.GridSize.Height); 1029gridStart.Y = viewableRectangle.Y - (viewableRectangle.Y % gridUnit.Height);
AuthoringOM\Design\DesignerWidgets.cs (12)
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))) 481buttonRectangle.Y = this.bounds.Y + this.margin.Height; 491buttonRectangle.Y = this.bounds.Y + this.margin.Height; 497buttonRectangle.Y = this.bounds.Y + this.margin.Height + buttonRectangle.Size.Height + this.itemStrip.Size.Height; 498if (buttonRectangle.Y >= this.bounds.Bottom) 1226graphics.DrawRectangle(SystemPens.ControlDarkDark, this.formRectangle.X, this.formRectangle.Y, this.formRectangle.Width - 1, this.formRectangle.Height - 1); 1239graphics.FillRectangle(SystemBrushes.InactiveCaptionText, itemBounds.X, itemBounds.Y, itemBounds.Width - 1, itemBounds.Height - 1); 1240graphics.DrawRectangle(SystemPens.ActiveCaption, itemBounds.X, itemBounds.Y, itemBounds.Width - 1, itemBounds.Height - 1); 1927RectangleF tabTextRectangleF = new RectangleF(tabTextRectangle.X, tabTextRectangle.Y, tabTextRectangle.Width, tabTextRectangle.Height); 2832stripRectangle.Y = this.bounds.Y; 2852scrollRectangle.Y = this.bounds.Y + this.bounds.Size.Height / 2 - scrollButtonSize.Height / 2;
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (2)
121e.Graphics.FillRectangle(dragRectangleBrush, dragRectangle.X, dragRectangle.Y, dragRectangle.Width - 1, dragRectangle.Height - 1); 122e.Graphics.DrawRectangle(ambientTheme.SelectionForegroundPen, dragRectangle.X, dragRectangle.Y, dragRectangle.Width - 1, dragRectangle.Height - 1);
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (1)
299y = Math.Max(y, clipBounds.Y);
AuthoringOM\Design\ParallelActivityDesigner.cs (5)
418int heightDelta = dropTargetRectangle.Y - parallelConnectorTop; 435connectorPoints[0].Y = dropTargetRectangle.Y; 437connectorPoints[1].Y = dropTargetRectangle.Y; 451connectorPoints[0].Y = dropTargetRectangle.Y; 453connectorPoints[1].Y = dropTargetRectangle.Y;
AuthoringOM\Design\SequentialActivityDesigner.cs (2)
411DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, new Point[] { new Point(connectors[0].X + connectors[0].Width / 2, connectors[0].Y + 2), new Point(connectors[0].X + connectors[0].Width / 2, helpTextRectangle.Top - 2) }, compositeDesignerTheme.ConnectorStartCap, LineAnchor.None); 567grabHandles[0] = new Rectangle(bounds.X + bounds.Width / 2 - ambientTheme.SelectionSize.Width / 2, bounds.Y, ambientTheme.SelectionSize.Width, ambientTheme.SelectionSize.Height);
AuthoringOM\Design\WorkflowLayouts.cs (13)
422Point deltaLocation = new Point(intersectedPhysicalViewPort.X - pageLayoutData.ViewablePageBounds.X, intersectedPhysicalViewPort.Y - pageLayoutData.ViewablePageBounds.Y); 431insersectedLogicalViewPort.Y = pageLayoutData.LogicalPageBounds.Y + deltaLocation.Y; 457Point deltaLocation = new Point(intersectedLogicalViewPort.X - pageLayoutData.LogicalPageBounds.X, intersectedLogicalViewPort.Y - pageLayoutData.LogicalPageBounds.Y); 466insersectedPhysicalViewPort.Y = pageLayoutData.ViewablePageBounds.Y + deltaLocation.Y; 565viewPortBitmapArea.Y = pageLayoutData.LogicalPageBounds.Y - viewPortData.LogicalViewPort.Y; 663bitmapDrawingPoint.Y = pageLayoutData.ViewablePageBounds.Y + Math.Abs(pageLayoutData.LogicalPageBounds.Y - intersectedViewPort.Y); 671viewPortBitmapArea.Y = intersectedViewPort.Y - viewPortData.LogicalViewPort.Y;
System.WorkflowServices (1)
System\Workflow\Activities\Design\GradientPanel.cs (1)
88Rectangle shadowRect = new Rectangle(frameRect.X, frameRect.Y + 6, frameRect.Width, frameRect.Height - 5);