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