458 writes to X
System.Drawing (6)
commonui\System\Drawing\Icon.cs (2)
507copy.X += (int) graphics.Transform.OffsetX; 532copy.X += (int) graphics.Transform.OffsetX;
commonui\System\Drawing\Rectangle.cs (4)
103X = value.X; 393this.X -= width; 428this.X = result.X; 496this.X += x;
System.Web.DataVisualization (27)
Common\General\Legend.cs (19)
827 cellPosition.X += itemHalfSpacing.Width; 839 cellPosition.X += this._subColumnSizes[index, subColumnIndex]; 843 cellPosition.X += this.GetSeparatorSize(this.ItemColumnSeparator).Width; 848 cellPosition.X += this._subColumnSizes[columnIndex, subColumnIndex]; 2459 separatorPosition.X = legendItem.Cells[0].cellPosition.Left; 2495 separatorRect.X += this.GetBorderSize() + this._offset.Width; 2499 separatorRect.X += this._horizontalSpaceLeft / 2; 2512 separatorRect.X += this._subColumnSizes[columnIndex, subColumnIndex]; 2522 separatorRect.X += separatorRect.Width; 4042 legendPosition.X += this.GetBorderSize(); 4075 rect.X += (int)(this._horizontalSpaceLeft / 2f); 4079 rect.X = prevRightLocation; 4118 fillRect.X = newX; 4137 fillRect.X -= this._itemColumnSpacingRel / 2; 4165 fillRect.X += legendPosition.X - fillRect.X; 4214 separatorRect.X = columnStart; 4274 legendPosition.X += this.GetBorderSize(); 4317 rect.X += this._offset.Width; 4318 rect.X += this.GetBorderSize();
Common\General\LegendColumns.cs (8)
1447 this.cellPosition.X += (int)(this.Margins.Left * singleWCharacterSize.Width / 100f); 2145 imagePosition.X = (int)((this.cellPosition.X + this.cellPosition.Width/2f) - imagePosition.Width/2f); 2153 imagePosition.X = this.cellPosition.X; 2159 imagePosition.X = this.cellPosition.Right - imagePosition.Width; 2250 seriesMarkerPosition.X = (int)((this.cellPosition.X + this.cellPosition.Width/2f) - seriesMarkerPosition.Width/2f); 2258 seriesMarkerPosition.X = this.cellPosition.X; 2264 seriesMarkerPosition.X = this.cellPosition.Right - seriesMarkerPosition.Width; 2314imageScale.X = (int)((seriesMarkerPosition.X + seriesMarkerPosition.Width / 2f) - imageScale.Width / 2f);
System.Windows.Forms (330)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (13)
576imageBounds.X = imageStart.X + 1; 627r.X -= 1; 1145layout.focus.X++; 1206layout.checkBounds.X = (field.X+field.Width) - layout.checkBounds.Width; 1209layout.checkBounds.X = field.X + (field.Width - layout.checkBounds.Width)/2; 1226layout.checkArea.X = field.X; 1232layout.field.X += checkSizeFull + 1; 1238layout.checkArea.X = field.X + field.Width - checkSizeFull; 1247layout.checkArea.X = field.X; 1258layout.checkArea.X = field.X; 1381layout.textBounds.X = Math.Max(Math.Min(layout.textBounds.X, layout.field.X + (layout.field.Width - layout.textBounds.Width)/2), layout.field.X); 1387layout.textBounds.X = layout.imageBounds.X + layout.imageBounds.Width; 1411layout.textBounds.X++;
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (1)
182check.X--; // compensate for Windows drawing slightly offset to right
winforms\Managed\System\WinForms\CheckedListBox.cs (2)
703box.X = bounds.X + bounds.Width - idealCheckSize - scaledListItemStartPosition; 729textBounds.X = bounds.X;
winforms\Managed\System\WinForms\ComboBox.cs (5)
5944dropDownRect.X += WhiteFillRectWidth; 5952innerBorder.X = clientRect.Width - innerBorder.Right; 5953innerInnerBorder.X = clientRect.Width - innerInnerBorder.Right; 5954dropDownRect.X = clientRect.Width - dropDownRect.Right; 5955whiteFillRect.X = clientRect.Width - whiteFillRect.Right + 1; // since we're filling, we need to move over to the next px.
winforms\Managed\System\WinForms\Control.cs (1)
9739rectangle.X++;
winforms\Managed\System\WinForms\ControlPaint.cs (5)
93result.X = (szCtl.Width - result.Width) / 2; 123result.X = (bounds.Width - result.Width) /2; 482imageRectangle.X += clipRect.Width - imageRectangle.Width; 1295rectangle.X += 1; 1297rectangle.X -= 1;
winforms\Managed\System\WinForms\Cursor.cs (1)
415targetRect.X += (int) graphics.Transform.OffsetX;
winforms\Managed\System\WinForms\DataGrid.cs (39)
1334backButton.X = MirrorRectangle(backButton, layout.Inside, isRightToLeft()); 1335detailsButton.X = MirrorRectangle(detailsButton, layout.Inside, isRightToLeft()); 4523refresh.X = layout.Inside.X; 4712r.X = Math.Min(inside.Right - 3, r.X); 4713r.X = Math.Max(r.X , 0); 4853rightArea.X = left; 4897clip.X = leftEdge + 3; 4994rightArea.X = rightToLeft ? layout.Data.X : left; 5406insideLeft.X += newRowHeaderWidth; 5413rowHeaders.X = insideLeft.Right - newRowHeaderWidth; 5426colHeaders.X += newRowHeaderWidth; 5432topLeft.X = colHeaders.Right - newRowHeaderWidth; 5770rowExclude.X += cx; 5771rowExclude.X = MirrorRectangle(rowExclude, layout.Data, alignToRight); 6329rowRect.X -= isRightToLeft() ? 0 : layout.RowHeaders.Width; 6431cellBounds.X += layout.Data.X - negOffset; 6432cellBounds.X = MirrorRectangle(cellBounds, layout.Data, isRightToLeft()); 6450rowBounds.X = layout.Data.X; 6611columnArea.X = x; 6612columnArea.X = MirrorRectangle(columnArea, layout.Data, isRightToLeft()); 6655invalid.X = layout.RowHeaders.X; 6671inner.X -= vertScrollBar.Width; 6768layout.ColumnHeaders.X += vertWidth; 6797layout.ColumnHeaders.X += vertWidth; 6851layout.Data.X += vertScrollBar.Width; 7123boundingRect.X -= negOffset; 7129boundingRect.X = boundingRect.Right - columnHeaderWidth; 7176textBounds.X = boundingRect.Right - cx - textBounds.Width; 7180textBounds.X = boundingRect.X + cx; 7201textBounds.X -= 2; textBounds.Y += 2; 7205textBounds.X += 2; textBounds.Y += 2; 7234textBounds.X += 2; textBounds.Y -= 2; 7238textBounds.X -= 2; textBounds.Y -= 2; 7263textBounds.X -= textBounds.Height; 7276textBounds.X += cx; 7437headerBounds.X = rowBounds.Right - headerBounds.Width; 7446rowBounds.X += headerBounds.Width; 7452dataBounds.X -= negOffset; 8850underParentRows.X -= isRightToLeft() ? 0 : layout.RowHeaders.Width;
winforms\Managed\System\WinForms\DataGridCaption.cs (4)
488textRect.X = bounds.Right - textRect.Width; 489backButtonRect.X = bounds.X + xOffset * 4 + downButtonWidth; 490downButtonRect.X = bounds.X + xOffset * 2; 579border.X = textBounds.Right - textPadding;
winforms\Managed\System\WinForms\DataGridParentRows.cs (12)
149ret.X = layout.leftArrow.IsEmpty ? layout.data.X : layout.leftArrow.Right; 568border.X = bounds.Right - borderWidth; 881paintBounds.X = MirrorRect(bounds, paintBounds, alignToRight); 892rowBounds.X += alignToRight ? 0 : paintedWidth; 897paintBounds.X = bounds.X + paintedWidth; 899paintBounds.X = MirrorRect(bounds, paintBounds, alignToRight); 923paintBounds.X = bounds.X + cx; 925paintBounds.X = MirrorRect(bounds, paintBounds, alignToRight); 942paintBounds.X = bounds.X + cx; 944paintBounds.X = MirrorRect(bounds, paintBounds, alignToRight); 969paintBounds.X = bounds.X + cx; 971paintBounds.X = MirrorRect(bounds, paintBounds, alignToRight);
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (14)
273relRect.X += DataGrid.GetRowHeaderRect().X + rowHeaderWidth; 275relRect.X = MirrorRelationshipRectangle(relRect, DataGrid.GetRowHeaderRect(), DataGrid.RightToLeft == RightToLeft.Yes); 295outline.X = MirrorRectangle(outline.X, outline.Width, insideRowHeaders, alignToRight); 360relRect.X += rowHeaders.X + this.dgTable.RowHeaderWidth; 361relRect.X = MirrorRelationshipRectangle(relRect, rowHeaders, alignToRight); 438relRect.X += rowHeaders.X + this.dgTable.RowHeaderWidth; 439relRect.X = MirrorRelationshipRectangle(relRect, rowHeaders, alignToRight); 479relRect.X += rowHeaders.X + this.dgTable.RowHeaderWidth; 480relRect.X = MirrorRelationshipRectangle(relRect, rowHeaders, alignToRight); 504relRect.X += rowHeaders.X + this.dgTable.RowHeaderWidth; 505relRect.X = MirrorRelationshipRectangle(relRect, rowHeaders, alignToRight); 578bounds.X += errRect.Width + xOffset; 644relRect.X = alignToRight ? bounds.Right - relRect.Width : bounds.X; 911bounds.X += rowBounds.X;
winforms\Managed\System\WinForms\DataGridRow.cs (6)
499cellBounds.X = bounds.Right - cx - cellBounds.Width; 501cellBounds.X = bounds.X + cx; 599bounds.X += PaintIcon(g, bounds, true, alignToRight, bmp).Width + xOffset; 607bounds.X += PaintIcon(g, bounds, RowNumber == this.DataGrid.CurrentCell.RowNumber, alignToRight, bmp).Width + xOffset; 614bounds.X += PaintIcon(g, bounds, RowNumber == this.DataGrid.CurrentCell.RowNumber, alignToRight, bmp).Width + xOffset; 645bounds.X += errRect.Width + xOffset;
winforms\Managed\System\WinForms\DataGridTable.cs (1)
912relationshipRect.X = 0; //indentWidth;
winforms\Managed\System\WinForms\DataGridView.cs (4)
2702rectDisplay.X = this.vertScrollBar.Width; 3419rectTmp.X--; 3429rectTmp.X++; 3436rectTmp.X += totalVisibleFrozenWidth;
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
448rectThemeMargins.X = rectContent.X;
winforms\Managed\System\WinForms\DataGridViewCell.cs (16)
1059rect.X = (advancedBorderStyle.Left == DataGridViewAdvancedCellBorderStyle.None) ? 0 : 1; 1062rect.X++; 1087rect.X += this.owningColumn.DividerWidth; 3599bounds.X += dividerThickness; 4330iconBounds.X += cellBounds.X; 4358rectPadding.X = bounds.Right - cellStyle.Padding.Left; 4361rectPadding.X = bounds.Left + cellStyle.Padding.Right; 4367rectPadding.X = bounds.Right - cellStyle.Padding.Right; 4370rectPadding.X = bounds.Left + cellStyle.Padding.Left; 4545borderAndPaddingWidths.X += cellStyle.Padding.Left; 5111columnRect.X -= this.owner.OwningColumn.Width; 5115columnRect.X = columnRect.Right; 5128columnRect.X -= negOffset; 5144columnRect.X = columnRect.Right; 5148columnRect.X -= this.owner.OwningColumn.Width; 5154rowRect.X = columnRect.X;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (3)
880valBounds.X += rectThemeMargins.Width; 885valBounds.X += rectThemeMargins.X; 959valBounds.X += sortGlyphSeparatorWidth +
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (11)
750borderAndPaddingWidths.X += cellStyle.Padding.Left; 2004cellBounds.X -= this.DataGridView.FirstDisplayedScrollingColumnHiddenWidth; 2459dropRect.X--; 2476dropRect.X++; 2499textBounds.X--; 2512errorBounds.X += dropWidth; 2513textBounds.X += dropWidth; 2522errorBounds.X += dropWidth + 1; 2523textBounds.X += dropWidth + 1; 2543focusBounds.X--; 2553focusBounds.X++;
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
487rectThemeMargins.X = rectContent.X;
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (13)
668imgBounds.X = bounds.X; 671imgBounds.X = bounds.Right - imgBounds.Width; 674imgBounds.X = bounds.X; 677imgBounds.X = bounds.Right - imgBounds.Width; 680imgBounds.X = bounds.X; 683imgBounds.X = bounds.Right - imgBounds.Width; 692imgBounds.X = bounds.X; 695imgBounds.X = bounds.Right - imgBounds.Width; 698imgBounds.X = bounds.X; 701imgBounds.X = bounds.Right - imgBounds.Width; 704imgBounds.X = bounds.X; 707imgBounds.X = bounds.Right - imgBounds.Width; 717imgBounds.X = bounds.X + (bounds.Width - imgBounds.Width) / 2;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (2)
1075focusBounds.X--; 1080focusBounds.X++;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (56)
2492cursorClip.X += cursorClip.Width - frozenWidth; 2501cursorClip.X += frozenWidth; 2505cursorClip.X += this.layout.Data.Width - frozenWidth - scrollingWidth; 2567clip.X = this.layout.Data.X - this.mouseBarOffset - 1; 2572clip.X += overflowWidth; 2578clip.X = leftEdge + this.Columns[columnIndex].MinimumThickness - this.mouseBarOffset - 1; 2782clip.X -= mouseBarOffset + 1; 2788clip.X += minimumRowHeadersWidth - mouseBarOffset - 1; 3026r.X = Math.Max(inside.Left, r.X); 3027r.X = Math.Min(r.X, inside.Right - r.Width); 3032r.X = Math.Min(inside.Right - r.Width, r.X); 3033r.X = Math.Max(r.X, inside.Left); 3044r.X = Math.Max(inside.Left, r.X); 3048r.X = Math.Min(inside.Right - 3, r.X); 3049r.X = Math.Max(r.X, 0); 4375rowHeaders.X += insideLeft.Width - rowHeaders.Width; 4379insideLeft.X += rowHeaders.Width; 4394topLeft.X += insideLeft.Width; 4398colHeaders.X += topLeft.Width; 4420insideLeft.X++; 5507rectScrollingArea.X += emptyBackgroundWidth; 5516rectScrollingArea.X += frozenVisibleColumnsWidth; 5693rectInsertionBar.X = GetColumnXFromIndex(this.Columns.GetFirstColumn(DataGridViewElementStates.Visible).Index); 5696rectInsertionBar.X -= DATAGRIDVIEW_insertionBarWidth; 5722rectInsertionBar.X = Math.Max(this.layout.ColumnHeaders.X, 5727rectInsertionBar.X = Math.Min(GetColumnXFromIndex(this.trackColumnEdge) + this.Columns[this.trackColumnEdge].Width - offsetFromCenter, 6893rect.X--; 7161rowRect.X -= width; 9190rowRect.X -= this.layout.RowHeaders.Width; 10400this.layout.Data.X += vertScrollBarWidth; 10408this.layout.ColumnHeaders.X += vertScrollBarWidth; 10429this.layout.ColumnHeaders.X -= vertScrollBarWidth; 10435this.layout.Data.X -= vertScrollBarWidth; 10452this.layout.Data.X += vertScrollBarWidth; 10460this.layout.ColumnHeaders.X += vertScrollBarWidth; 14970rightArea.X = leftEdge; 17198gridRect.X--; 17246focusRect.X -= change; 17276edge.X += rect.Width - 1; 19799rcNextRows.X += this.layout.RowHeaders.Width; 19807rcNextRows.X++; 19815rcNextRows.X += rowsWidth; 19856edge.X = bounds.Width - borderWidth; 19915cellBounds.X = bandBounds.Right - cx - cellBounds.Width; 19919cellBounds.X = bandBounds.X + cx; 19959scrollingBounds.X -= this.negOffset; 19972rowRect.X += cx; 19992cellBounds.X = scrollingBounds.Right - cx - cellBounds.Width; 19996cellBounds.X = scrollingBounds.X + cx; 20376editingZone.X += totalVisibleFrozenWidth; 20407cellBounds.X--; 20408cellClip.X--; 26448rowsRect.X--; 26474rowsRect.X = this.layout.Inside.X; 29067bottomArea.X--; 29131bottomArea.X--;
winforms\Managed\System\WinForms\DataGridViewRow.cs (7)
1627cellBounds.X = rowBounds.Right - cx - cellBounds.Width; 1631cellBounds.X = rowBounds.X + cx; 1683dataBounds.X -= dataGridView.FirstDisplayedScrollingColumnHiddenWidth; 1694rowRect.X += cx; 1714cellBounds.X = dataBounds.Right - cx - cellBounds.Width; 1718cellBounds.X = dataBounds.X + cx; 1802cellBounds.X = rowBounds.Right - cellBounds.Width;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (4)
850valBounds.X += rectThemeMargins.Height; 854valBounds.X += rectThemeMargins.Y; 961valBounds.X += iconsWidth + 2 * DATAGRIDVIEWROWHEADERCELL_iconMarginWidth; 988valBounds.X += iconsWidth + 2 * DATAGRIDVIEWROWHEADERCELL_iconMarginWidth;
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (5)
207editingControlBounds.X += 1; 212editingControlBounds.X += DATAGRIDVIEWTEXTBOXCELL_horizontalTextOffsetLeft; 220editingControlBounds.X += 1; 230editingControlBounds.X += DATAGRIDVIEWTEXTBOXCELL_horizontalTextOffsetRight - 1; 235editingControlBounds.X += 1;
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (4)
292bounds.X = bounds.Width + bounds.X - BUTTON_WIDTH; 303bounds.X -= (BUTTON_WIDTH + BUTTON_PAD); 310bounds.X -= (BUTTON_WIDTH + BUTTON_PAD); 317bounds.X -= (BUTTON_WIDTH + BUTTON_PAD);
winforms\Managed\System\WinForms\DrawListViewItemEventArgs.cs (3)
176resultBounds.X += 4; 181resultBounds.X +=4; 186resultBounds.X --;
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
1193iconBounds.X -= windowBounds.X;
winforms\Managed\System\WinForms\Form.cs (4)
1168bounds.X -= screen.X; 5872restoredWindowBounds.X = x; 5887restoreBounds.X = x; 5995adjustedBounds.X = Left;
winforms\Managed\System\WinForms\GroupBox.cs (1)
561textRectangle.X += textOffset;
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (8)
176textBounds.X = bounds.Right - textBounds.Width - boxHeaderWidth + 1; // +1 to account for the margin built in the MeasureText result 179textBounds.X += boxHeaderWidth - 1; // -1 to account for the margin built in the MeasureText result 198clipLeft.X = boxBounds.Right - boxHeaderWidth; 199clipMiddle.X = clipLeft.Left - clipMiddle.Width; 204clipMiddle.X = clipLeft.Right; 205clipRight.X = clipMiddle.Right; 269textBounds.X = bounds.Right - textBounds.Width - textOffset; 272textBounds.X += textOffset;
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (1)
287if (!xChangedButNotSpecified) originalBounds.X = x;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (1)
305remainingBounds.X += element.Bounds.Width;
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (2)
345value.X = DisplayRect.Right - value.Right; 420newBounds.X = DisplayRect.Right - bounds.X - bounds.Width + ElementProxy.Margin.Left - ElementProxy.Margin.Right;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (9)
261withinThis.X += withinThis.Width - alignThis.Width; 264withinThis.X += (withinThis.Width - alignThis.Width) / 2; 273withinThis.X += withinThis.Width - alignThis.Width; 276withinThis.X += (withinThis.Width - alignThis.Width) / 2; 324rect.X -= padding.Left; 332rect.X += padding.Left; 441region2.X += specifiedContent.Width; 445region1.X += bounds.Width - specifiedContent.Width; 523bounds.X = withinBounds.Width - bounds.Right;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (1)
1242elementBounds.X = cellBounds.X + (cellBounds.Right - elementBounds.Right);
winforms\Managed\System\WinForms\ListView.cs (1)
4717rectInvalid.X = rectInvalid.Y = 0;
winforms\Managed\System\WinForms\PictureBox.cs (2)
455result.X += (result.Width - image.Width) / 2; 465result.X = (ClientRectangle.Width - result.Width) /2;
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
2155rect.X += cPaint + gridHost.GetValueStringIndent();
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (12)
2137rect.X = ptOurLocation.X; 2143rect.X = 1; 2147rect.X = 1; 2151rect.X = ptOurLocation.X + InternalLabelWidth; 2227boundsScroll.X = sizeWindow.Width - boundsScroll.Width - 1; 2372r.X = oldLabelWidth - requiredLabelPaintMargin; 2559drawBounds.X -= 1; 4420rect.X += 1; 4439rect.X += paintIndent + 1; 4443rect.X += EDIT_INDENT + 1; // +1 to compensate for where GDI+ draws it's string relative to the rect. 4467rect.X += (LEFTDOT_SIZE * 2); 5862newBounds.X = dragBaseRect.Left + delta;
winforms\Managed\System\WinForms\ScrollableControl.cs (2)
267rect.X = displayRect.X; 871 displayRect.X = x;
winforms\Managed\System\WinForms\SplitContainer.cs (7)
910r.X = splitterRect.X - Left; 1530splitterRect.X = this.Location.X + SplitterDistanceInternal; 1533splitterRect.X = this.Right - SplitterDistanceInternal - SplitterWidthInternal; 1558r.X = panel1.Location.X + splitSize; 1561r.X = Width - splitSize - SplitterWidthInternal; 1726splitterRect.X = ((RightToLeft == RightToLeft.Yes) ? this.Width - splitterDistance - SplitterWidthInternal : this.Location.X + splitterDistance); 1733splitterRect.X = this.Location.X;
winforms\Managed\System\WinForms\Splitter.cs (3)
463bounds.X += bounds.Width - splitSize; 677r.X = bounds.X + splitSize; 681r.X = bounds.X + bounds.Width - splitSize - r.Width;
winforms\Managed\System\WinForms\TabControl.cs (1)
440r.X -= p.X;
winforms\Managed\System\WinForms\ToolStrip.cs (6)
857rect.X += (RightToLeft == RightToLeft.No) ? gripwidth : 0; 4291gripRectangle.X = Math.Max(0, displayRect.X - Grip.GripThickness); 4296gripRectangle.X = ClientRectangle.Right - gripRectangle.Width - Grip.Margin.Horizontal; 4297gripRectangle.X += Grip.Margin.Left; 4300gripRectangle.X -= Grip.Margin.Right; 4305gripRectangle.X = displayRect.Left;
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (5)
491checkRectangle.X = width - checkRectangle.Right; 492imageRectangle.X = width - imageRectangle.Right; 493textRectangle.X = width - textRectangle.Right; 494arrowRectangle.X = width - arrowRectangle.Right; 495imageMarginBounds.X = width - imageMarginBounds.Right;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (2)
1194rect.X -= dropDownMenu.Padding.Left; 1195rect.X = Math.Max(rect.X,0);
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (1)
129bounds.X = 0;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (5)
428cachedBounds.X -= Math.Max(0, margins[i] - c.Margin.Left); 473cachedBounds.X -= cellOffsets[i]; 510cachedBounds.X = Math.Max(0, cachedBounds.X - margins[i] - c.Margin.Top); 977dragBounds.X -= Row.Margin.Left + ToolStripPanel.Padding.Left +4; 1476dragBounds.X = x;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (9)
853endGradient.X = bounds.Right - endGradient.Width; 877endGradient.X += 1; 1064overflowBoundsFill.X += overflowBoundsFill.Width - overflowButtonWidth + 1; 1142fillRect.X = overflowBoundsFill.Right; 1173topLeftShadowRect.X += 1; 1181topRightShadowRect.X -= 2; // was 2? 1186topRightShadowRect2.X += 1; 1283bounds.X += dropDownMenu.Padding.Left -2; 1289bounds.X += 2;
winforms\Managed\System\WinForms\ToolStripRenderer.cs (2)
871imageRect.X +=1; 1034baseRect.X = sizeGripBounds.Width - baseRect.X - baseRect.Width;
winforms\Managed\System\WinForms\ToolStripSeparator.cs (1)
468rect.X = 2;
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (1)
395fillRect.X += 2;
winforms\Managed\System\WinForms\TreeView.cs (1)
2739bounds.X -= value;
winforms\Managed\System\WinForms\UpDownBase.cs (4)
826backRect.X--; 842backRect.X--; 1130upDownButtonsBounds.X = totalClientWidth - upDownButtonsBounds.Right; 1131upDownEditBounds.X = totalClientWidth - upDownEditBounds.Right;
winforms\Managed\System\WinForms\WinFormsUtils.cs (2)
112bounds.X = constrainingBounds.Right - bounds.Width; 116bounds.X = constrainingBounds.Left;
System.Windows.Forms.DataVisualization (30)
Common\General\Legend.cs (19)
827 cellPosition.X += itemHalfSpacing.Width; 839 cellPosition.X += this._subColumnSizes[index, subColumnIndex]; 843 cellPosition.X += this.GetSeparatorSize(this.ItemColumnSeparator).Width; 848 cellPosition.X += this._subColumnSizes[columnIndex, subColumnIndex]; 2459 separatorPosition.X = legendItem.Cells[0].cellPosition.Left; 2495 separatorRect.X += this.GetBorderSize() + this._offset.Width; 2499 separatorRect.X += this._horizontalSpaceLeft / 2; 2512 separatorRect.X += this._subColumnSizes[columnIndex, subColumnIndex]; 2522 separatorRect.X += separatorRect.Width; 4042 legendPosition.X += this.GetBorderSize(); 4075 rect.X += (int)(this._horizontalSpaceLeft / 2f); 4079 rect.X = prevRightLocation; 4118 fillRect.X = newX; 4137 fillRect.X -= this._itemColumnSpacingRel / 2; 4165 fillRect.X += legendPosition.X - fillRect.X; 4214 separatorRect.X = columnStart; 4274 legendPosition.X += this.GetBorderSize(); 4317 rect.X += this._offset.Width; 4318 rect.X += this.GetBorderSize();
Common\General\LegendColumns.cs (8)
1447 this.cellPosition.X += (int)(this.Margins.Left * singleWCharacterSize.Width / 100f); 2145 imagePosition.X = (int)((this.cellPosition.X + this.cellPosition.Width/2f) - imagePosition.Width/2f); 2153 imagePosition.X = this.cellPosition.X; 2159 imagePosition.X = this.cellPosition.Right - imagePosition.Width; 2250 seriesMarkerPosition.X = (int)((this.cellPosition.X + this.cellPosition.Width/2f) - seriesMarkerPosition.Width/2f); 2258 seriesMarkerPosition.X = this.cellPosition.X; 2264 seriesMarkerPosition.X = this.cellPosition.Right - seriesMarkerPosition.Width; 2314imageScale.X = (int)((seriesMarkerPosition.X + seriesMarkerPosition.Width / 2f) - imageScale.Width / 2f);
WinForm\Utilities\AccessibleObject.cs (1)
316rect.X = (int)(rect.X * this._chartScale.X);
WinForm\Utilities\Printing.cs (2)
255marginPixel.X = (int)(marginPixel.X * (ev.Graphics.DpiX / 100.0f)); 270chartPosition.X += (marginPixel.Width - chartPosition.Width) / 2;
System.Workflow.Activities (2)
Designers\ConditionalDesigner.cs (1)
100diamondRectangle.X = bounds.Left + bounds.Width / 2 - diamondRectangle.Width / 2;
Designers\ListenDesigner.cs (1)
80roundRectangle.X = bounds.Left + bounds.Width / 2 - roundRectangle.Width / 2;
System.Workflow.ComponentModel (57)
AuthoringOM\Design\ActivityDesigner.cs (6)
540textRectangle.X = bounds.Left + ambientTheme.Margin.Width; 541textRectangle.X += (Image != null) ? designerTheme.ImageSize.Width + ambientTheme.Margin.Width : 0; 564imageRectangle.X = bounds.Left + WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Width; 3042smartTagRectangle.X = rectangle.Left - margin.Width / 2; 3095imageRectangle.X += margin.Width / 2; 3102dropDownRectangle.X += imageSize.Width + 3 * margin.Width / 2;
AuthoringOM\Design\CompositeActivityDesigner.cs (6)
244expandButtonRectangle.X += (bounds.Width - ((3 * designerTheme.ExpandButtonSize.Width / 2) + anchorSize.Width)) / 2; 305imageRectangle.X += (bounds.Width - imageSize.Width) / 2; 309imageRectangle.X += (bounds.Width - (imageSize.Width + 3 * expandButtonSize.Width / 2)) / 2; 310imageRectangle.X += 3 * expandButtonSize.Width / 2; 355textRectangle.X += (bounds.Width - (3 * expandButtonSize.Width / 2 + textSize.Width)) / 2; 356textRectangle.X += 3 * expandButtonSize.Width / 2;
AuthoringOM\Design\DesignerHelpers.cs (4)
213rectangle.X = destination.Left; 215rectangle.X = destination.Right - rectangle.Width; 217rectangle.X = destination.Left + destination.Width / 2 - rectangle.Width / 2; 546bounds.X -= inflate.Width;
AuthoringOM\Design\DesignerWidgets.cs (17)
239itemRectangle.X += (itemRectangle.Width - itemRectangle.Height) / 2; 480buttonRectangle.X = this.bounds.X + this.margin.Width; 487buttonRectangle.X = this.bounds.X + this.margin.Width + buttonRectangle.Size.Width + this.itemStrip.Size.Width; 489buttonRectangle.X = this.bounds.Right - buttonRectangle.Size.Width; 495buttonRectangle.X = this.bounds.X + this.margin.Width; 715itemRectangle.X = bounds.Left + (itemIndex * this.itemSize.Width) + ((itemIndex + 1) * this.margin.Width); 720itemRectangle.X = bounds.Left + this.margin.Width; 1989this.drawItems[i].TabItemRectangle.X = offset; 1996this.drawItems[i].TabItemRectangle.X = 0; 2022this.drawItems[i].TabItemRectangle.X -= offset; 2112textRectangle.X += imageRectangle.Width + TabMargin; 2537rectangles[j].X = stripRectangle.Left + (i * (itemSize.Width + itemMargin.Width)); 2564itemRectangle.X = stripRectangle.Left + (itemIndex * itemSize.Width) + ((itemIndex + 1) * itemMargin.Width); 2740imageRectangle.X = itemRectangle.Left + 2; 2831stripRectangle.X = scrollLeftButton.Right + margin.Width; 2851scrollRectangle.X = startLocation; 3466destnRectangle.X = this.canvasBounds.Left + this.canvasBounds.Width / 2 - destnRectangle.Width / 2;
AuthoringOM\Design\FreeFormDesigner.cs (2)
935bounds.X = Math.Min(minRectangle.Left, e.Bounds.Left); 1139enclosingRectangle.X = leftTop.X;
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (1)
86activatedBounds.X += bounds.Width + ambientTheme.Margin.Width;
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (4)
160scrollIndicatorRectangles[0].X = indicatorMargins.Width; 165scrollIndicatorRectangles[1].X = clientRectangle.Right - indicatorMargins.Width - scrollIndicatorSize.Width; 170scrollIndicatorRectangles[2].X = (clientRectangle.Width - scrollIndicatorSize.Width) / 2; 175scrollIndicatorRectangles[3].X = (clientRectangle.Width - scrollIndicatorSize.Width) / 2;
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (1)
582rectangle.X = this.borderSize.Width + (buttonIndex * this.buttonSize.Width) + ((buttonIndex + 1) * this.margin.Width);
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (1)
292designerBounds.X = x + delta;
AuthoringOM\Design\SequentialActivityDesigner.cs (1)
163helpTextRectangle.X = connectors[0].Left + connectors[0].Width / 2 - this.helpTextSize.Width / 2;
AuthoringOM\Design\SequentialWorkflowHeaderFooter.cs (3)
119bounds.X = designerBounds.Left + designerBounds.Width / 2 - bounds.Width / 2; 140bounds.X = designerBounds.Left + designerBounds.Width / 2 - this.textSize.Width / 2; 164bounds.X = designerBounds.Left + designerBounds.Width / 2 - bounds.Width / 2;
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (2)
369imageRectangle.X -= SequentialWorkflowRootDesigner.HeaderFooterSizeIncr / 2; 453imageRectangle.X -= SequentialWorkflowRootDesigner.HeaderFooterSizeIncr / 2;
AuthoringOM\Design\WorkflowLayouts.cs (6)
285logicalRectangle.X -= offSet.Width; 293logicalRectangle.X += offSet.Width; 430insersectedLogicalViewPort.X = pageLayoutData.LogicalPageBounds.X + deltaLocation.X; 465insersectedPhysicalViewPort.X = pageLayoutData.ViewablePageBounds.X + deltaLocation.X; 564viewPortBitmapArea.X = pageLayoutData.LogicalPageBounds.X - viewPortData.LogicalViewPort.X; 670viewPortBitmapArea.X = intersectedViewPort.X - viewPortData.LogicalViewPort.X;
AuthoringOM\Design\WorkflowPrinting.cs (3)
275layoutRectangle.X = headerFooterPrintData.PageBoundsWithoutMargin.Left; 280layoutRectangle.X = headerFooterPrintData.PageBoundsWithoutMargin.Left + ((headerFooterPrintData.PageBoundsWithoutMargin.Width - layoutRectangle.Width) / 2); //align to the middle 285layoutRectangle.X = headerFooterPrintData.PageBoundsWithoutMargin.Left + (headerFooterPrintData.PageBoundsWithoutMargin.Width - layoutRectangle.Width); //align to the right corner
System.WorkflowServices (6)
System\Workflow\Activities\Design\GradientPanel.cs (4)
84frameRect.X -= Margin.Left; 134arc.X = frame.Right - diameter; 138arc.X = frame.Left; 150arc.X = frame.Right - diameter;
System\Workflow\ComponentModel\Design\HighlightOverlayGlyph.cs (2)
90arc.X = frame.Right - diameter; 94arc.X = frame.Left;
989 references to X
System.Drawing (65)
commonui\System\Drawing\Advanced\GPRECT.cs (1)
30X = rect.X;
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)
165dstRect.X, 276dstRect.X,
commonui\System\Drawing\Bitmap.cs (1)
497rect.X,
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); 3028srcRect.X, 3088destRect.X, 3092srcRect.X, 3254srcRect.X, 3310destRect.X, 3365destRect.X, 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)
432imageX = imageRect.X; 443targetX = targetRect.X;
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (1)
83Convert(value.X, fromUnit, toUnit),
commonui\System\Drawing\Rectangle.cs (28)
100return new Point(X, Y); 189return X; 216return X + Width; 263return(comp.X == this.X) && 277return (left.X == right.X 339return this.X <= x && 340x < this.X + this.Width && 367return(this.X <= rect.X) && 368((rect.X + rect.Width) <= (this.X + this.Width)) && 379return unchecked((int)((UInt32)X ^ 428this.X = result.X; 439int x1 = Math.Max(a.X, b.X); 440int x2 = Math.Min(a.X + a.Width, b.X + b.Width); 458return(rect.X < this.X + this.Width) && 459(this.X < (rect.X + rect.Width)) && 473int x1 = Math.Min(a.X, b.X); 474int x2 = Math.Max(a.X + a.Width, b.X + b.Width); 508return "{X=" + X.ToString(CultureInfo.CurrentCulture) + ",Y=" + Y.ToString(CultureInfo.CurrentCulture) +
commonui\System\Drawing\RectangleConverter.cs (2)
128args[nArg++] = intConverter.ConvertToString(context, culture, rect.X); 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 (22)
Common\General\ChartGraphics.cs (2)
2420 absPositionRounded.Width = (int)Math.Round(absPosition.Right) - absPositionRounded.X; 2559 absPositionRounded.Width = (int)Math.Round(absPosition.Right) - absPositionRounded.X;
Common\General\Legend.cs (12)
529 legendPosition.X + this._offset.Width + this.GetBorderSize(), 2471 separatorPosition.Width = right - separatorPosition.X; 2541 this._legendItemsAreaPosition.X + this._legendItemsAreaPosition.Width / 2 - step * (float)Math.Floor(markerCount/2f), 4114 int newX = legendPosition.X; 4117 fillRect.Width += fillRect.X - legendPosition.X; 4163 if(fillRect.X < legendPosition.X) 4165 fillRect.X += legendPosition.X - fillRect.X; 4166 fillRect.Width -= (legendPosition.X - fillRect.X);
Common\General\LegendColumns.cs (7)
2145 imagePosition.X = (int)((this.cellPosition.X + this.cellPosition.Width/2f) - imagePosition.Width/2f); 2153 imagePosition.X = this.cellPosition.X; 2250 seriesMarkerPosition.X = (int)((this.cellPosition.X + this.cellPosition.Width/2f) - seriesMarkerPosition.Width/2f); 2258 seriesMarkerPosition.X = this.cellPosition.X; 2314imageScale.X = (int)((seriesMarkerPosition.X + seriesMarkerPosition.Width / 2f) - imageScale.Width / 2f); 2368 point1.X = seriesMarkerPosition.X; 2423 point.X = (int)(seriesMarkerPosition.X + seriesMarkerPosition.Width/2f);
WebForm\ChartWebControl.cs (1)
1056graphics.TranslateTransform(position.X, position.Y);
System.Web.Mobile (1)
UI\MobileControls\Design\Util\GroupLabel.cs (1)
43int etchLeft = r.X;
System.Windows.Forms (832)
misc\GDI\WindowsGraphics2.cs (4)
92Point p = new Point(bounds.X+sideLength/2, bounds.Y+sideLength/2); 252bounds.Width = bounds.Width - bounds.X; 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)
1363pxLeft = bounds.X; 1379pxLeft = bounds.X;
winforms\Managed\System\WinForms\AxHost.cs (3)
1578if (oldBounds.X == x && oldBounds.Y == y && oldBounds.Width == width && 4614dest.left = source.X; 4616dest.right = source.Width + source.X;
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (31)
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); 1206layout.checkBounds.X = (field.X+field.Width) - layout.checkBounds.Width; 1209layout.checkBounds.X = field.X + (field.Width - layout.checkBounds.Width)/2; 1226layout.checkArea.X = field.X; 1238layout.checkArea.X = field.X + field.Width - checkSizeFull; 1247layout.checkArea.X = field.X; 1258layout.checkArea.X = field.X; 1381layout.textBounds.X = Math.Max(Math.Min(layout.textBounds.X, layout.field.X + (layout.field.Width - layout.textBounds.Width)/2), layout.field.X); 1382layout.textBounds.Width = textRight - layout.textBounds.X; 1387layout.textBounds.X = layout.imageBounds.X + layout.imageBounds.Width;
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\CheckBoxStandardAdapter.cs (1)
40int focusRectFixup = layout.focus.X & 0x1; // if it's odd, subtract one pixel for fixup.
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 (8)
694Rectangle box = new Rectangle(bounds.X + scaledListItemStartPosition, 703box.X = bounds.X + bounds.Width - idealCheckSize - scaledListItemStartPosition; 712CheckBoxRenderer.DrawCheckBox(e.Graphics, new Point(box.X, box.Y), cbState, HandleInternal); 721bounds.X + idealCheckSize + (scaledListItemStartPosition * 2), 729textBounds.X = bounds.X; 767textBounds.X + BORDER_SIZE, 849bounds.X + BORDER_SIZE, 1671NativeMethods.POINT pt = new NativeMethods.POINT(rect.X, rect.Y);
winforms\Managed\System\WinForms\ComboBox.cs (11)
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); 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)
180int x = screen.X + (screen.Width - r.right + r.left) / 2;
winforms\Managed\System\WinForms\ContextMenuStrip.cs (3)
107else if (bounds.X < screenBounds.X) { 112Show(bounds.X, bounds.Y);
winforms\Managed\System\WinForms\Control.cs (22)
1376SetBounds(value.X, value.Y, value.Width, value.Height, BoundsSpecified.All); 5810cp.X -= parentClient.X; 6158|| targetBounds.X < 0 || targetBounds.Y < 0) { 6180SafeNativeMethods.BitBlt(new HandleRef(destGraphics, desthDC), targetBounds.X, targetBounds.Y, width, height, 6594int sx = bounds.X; 6612sx = (int)Math.Round(bounds.X * dx); 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); 11877x = adjustedBounds.X; 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)); 18361adjustRect.left = posRect.X; 18363adjustRect.right = posRect.Width + posRect.X; 18406NativeMethods.RECT rcIntersect = NativeMethods.RECT.FromXYWH(intersect.X, intersect.Y, intersect.Width, intersect.Height);
winforms\Managed\System\WinForms\ControlPaint.cs (129)
121if (bounds.X >= 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, 609topLineLefts[i] = bounds.X + leftOffset; 610topLineRights[i] = bounds.X + bounds.Width - rightOffset - 1; 645bottomLineLefts[i] = bounds.X + leftOffset; 646bottomLineRights[i] = bounds.X + bounds.Width - rightOffset - 1; 736graphics.DrawLine(pen, bounds.X + i, leftLineTops[i], bounds.X + i, leftLineBottoms[i]); 744graphics.DrawLine(pen, bounds.X + i, leftLineTops[i], bounds.X + i, leftLineBottoms[i]); 752graphics.DrawLine(pen, bounds.X + i, leftLineTops[i], bounds.X + i, leftLineBottoms[i]); 761graphics.DrawLine(pen, bounds.X + i, leftLineTops[i], bounds.X + i, leftLineBottoms[i]); 771graphics.DrawLine(pen, bounds.X + i, leftLineTops[i], bounds.X + i, leftLineBottoms[i]); 845graphics.DrawLine(pen, bounds.X + bounds.Width - 1 - i, rightLineTops[i], bounds.X + bounds.Width - 1 - i, rightLineBottoms[i]); 853graphics.DrawLine(pen, bounds.X + bounds.Width - 1 - i, rightLineTops[i], bounds.X + bounds.Width - 1 - i, rightLineBottoms[i]); 861graphics.DrawLine(pen, bounds.X + bounds.Width - 1 - i, rightLineTops[i], bounds.X + bounds.Width - 1 - i, rightLineBottoms[i]); 870graphics.DrawLine(pen, bounds.X + bounds.Width - 1 - i, rightLineTops[i], bounds.X + bounds.Width - 1 - i, rightLineBottoms[i]); 881graphics.DrawLine(pen, bounds.X + bounds.Width - 1 - i, rightLineTops[i], bounds.X + bounds.Width - 1 - i, rightLineBottoms[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); 1198graphics.DrawLine(pen, bounds.X + 1, bounds.Bottom - 1, bounds.Right -2, bounds.Bottom - 1); 1199graphics.DrawLine(pen, bounds.X, bounds.Y + 1, bounds.X, bounds.Bottom -2); 1202int midx = bounds.X + bounds.Width/2; 1209graphics.DrawLine(pen, bounds.X, midy, bounds.Right - 2, midy); 1216graphics.DrawLine(pen, bounds.X+2, midy - 1, bounds.X + 2, midy + 1); 1217graphics.DrawLine(pen, bounds.X+3, midy - 2, bounds.X + 3, midy + 2); 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); 2412int x = bound.X; 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); 436imageX = imageRect.X; 447targetX = targetRect.X;
winforms\Managed\System\WinForms\DataGrid.cs (44)
4061caption.MouseDown(e.X - captionRect.X, e.Y - captionRect.Y); 4302caption.MouseOver(e.X - captionRect.X, e.Y - captionRect.Y); 4478right = new Rectangle(oldClientRectangle.X + oldClientRectangle.Width - borderWidth, 4482bottom = new Rectangle(oldClientRectangle.X, 4490right = new Rectangle(newClientRectangle.X + newClientRectangle.Width - borderWidth, 4498bottom = new Rectangle(newClientRectangle.X, 4523refresh.X = layout.Inside.X; 4703Rectangle r = new Rectangle(inside.X, e.Y, inside.Width, 3); 4712r.X = Math.Min(inside.Right - 3, r.X); 4713r.X = Math.Max(r.X , 0); 4852rightArea.Width -= left - rightArea.X; 4892clip.Width = GetColBeg(col) - layout.Data.X - 2; 4898clip.Width = layout.Data.X + layout.Data.Width - leftEdge - 2; 4932int x = rightToLeft ? Math.Max(e.X, layout.Data.X) : Math.Min(e.X, layout.Data.Right + 1); 4993rightArea.Width -= rightToLeft ? rightArea.Right - left : left - rightArea.X; 4994rightArea.X = rightToLeft ? layout.Data.X : left; 5765int cx = layout.Data.X; 5773region.Exclude(new Rectangle(rowExclude.X, 5860SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X, r.Y, r.Width, r.Height, NativeMethods.PATINVERT); 6196Debug.Assert(x >= inside.X && x < inside.Right, "x must be inside the horizontal bounds of layout.Data"); 6203int cx = inside.X - negOffset; 6205while (cx < inside.Width + inside.X && col < columnCount) { 6224int offset = layout.Data.X - negOffset; 6323Rectangle rowRect = new Rectangle(inside.X, 6431cellBounds.X += layout.Data.X - negOffset; 6450rowBounds.X = layout.Data.X; 6604int x = layout.Data.X - negOffset; 6655invalid.X = layout.RowHeaders.X; 6669Rectangle inner = new Rectangle(rowRect.X + r.X, rowRect.Y + r.Y, r.Width, r.Height); 6808layout.ResizeBoxRect = new Rectangle(alignToRight ? data.X : data.Right, 6826horizScrollBar.Bounds = new Rectangle(alignToRight ? layout.Inside.X + layout.ResizeBoxRect.Width : layout.Inside.X, 6844vertScrollBar.Bounds = new Rectangle(alignToRight ? layout.Data.X : layout.Data.Right, 7180textBounds.X = boundingRect.X + cx; 7244Rectangle triBounds = new Rectangle(alignRight ? textBounds.X - textBounds.Height : textBounds.Right, 7303g.FillRectangle(br, bounds.X, bounds.Y, bounds.Width + 2, 2); 7305g.FillRectangle(br, bounds.X, bounds.Bottom - 2, bounds.Width + 2, 2); 7306g.FillRectangle(br, bounds.X, bounds.Y, 2, bounds.Height + 2); 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); 9524return rect.Right + rect.X - R1.Right; 9526return R1.X; 9537return rect.Right + rect.X - x;
winforms\Managed\System\WinForms\DataGridBoolColumn.cs (2)
156return new Rectangle(bounds.X +((bounds.Width - idealCheckSize) /2), 161return new Rectangle(Math.Max(0,bounds.X +((bounds.Width - idealCheckSize) /2)),
winforms\Managed\System\WinForms\DataGridCaption.cs (5)
480bounds.X, 489backButtonRect.X = bounds.X + xOffset * 4 + downButtonWidth; 490downButtonRect.X = bounds.X + xOffset * 2; 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\DataGridParentRows.cs (25)
149ret.X = layout.leftArrow.IsEmpty ? layout.data.X : layout.leftArrow.Right; 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); 726g.DrawLine(gridLinePen, rowBounds.X, rowBounds.Bottom, 727rowBounds.X + paintedWidth, 774int bmpX = bounds.X + (bounds.Width - b.Width) / 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 897paintBounds.X = bounds.X + paintedWidth; 923paintBounds.X = bounds.X + cx; 942paintBounds.X = bounds.X + cx; 956alignToRight ? paintBounds.X : paintBounds.Right, 958alignToRight ? paintBounds.X : paintBounds.Right, 969paintBounds.X = bounds.X + cx; 1018Debug.Assert(containedRect.X >= surroundingRect.X && containedRect.Right <= surroundingRect.Right, "containedRect is not contained in surroundingRect"); 1020return surroundingRect.Right - containedRect.Right + surroundingRect.X; 1022return containedRect.X;
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (32)
273relRect.X += DataGrid.GetRowHeaderRect().X + rowHeaderWidth; 295outline.X = MirrorRectangle(outline.X, outline.Width, insideRowHeaders, alignToRight); 360relRect.X += rowHeaders.X + this.dgTable.RowHeaderWidth; 438relRect.X += rowHeaders.X + this.dgTable.RowHeaderWidth; 479relRect.X += rowHeaders.X + this.dgTable.RowHeaderWidth; 504relRect.X += rowHeaders.X + this.dgTable.RowHeaderWidth; 534int dataWidthOffsetted = dataWidth + bounds.X - trueRowBounds.X; 542Rectangle relationBounds = new Rectangle(trueRowBounds.X, 605int rowHeaderBoundsX = MirrorRectangle(bounds.X, 609if (!alignToRight) Debug.Assert(bounds.X == rowHeaderBoundsX, "what's up doc?"); 619int expandoBoxX = MirrorRectangle(bounds.X + rowHeaderBounds.Width, expandoBoxWidth, bounds, alignToRight); 644relRect.X = alignToRight ? bounds.Right - relRect.Width : bounds.X; 653alignToRight ? bounds.Right - dataWidth : bounds.X, 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); 681alignToRight ? bounds.X : bounds.X + paintedWidth, 696alignToRight ? bounds.Right - bWidth - paintedWidth : bounds.X + paintedWidth - bWidth, 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, 771outline.X + outline.Height/2, outline.Y + indent, 772outline.X + outline.Height/2, outline.Bottom - indent - 1); // -1... hinting 776points[0] = new Point(outline.X + outline.Height/2, outline.Bottom); 780points[2] = new Point(alignToRight ? bounds.X : bounds.Right, 806return rowHeader.X - relRect.Width; 808return relRect.X; 816return rect.Right + rect.X - width - x; 911bounds.X += rowBounds.X;
winforms\Managed\System\WinForms\DataGridRow.cs (7)
444Rectangle bottomBorder = new Rectangle(alignToRight ? bounds.Right - dataWidth : bounds.X, 454alignToRight ? bounds.X: bottomBorder.Right, 501cellBounds.X = bounds.X + cx; 517alignToRight ? cellBounds.X - bWidth : cellBounds.Right, 528alignToRight ? bounds.X : bounds.X + cx, 561Rectangle bmpRect = new Rectangle(alignToRight ? visualBounds.Right - xOffset - bmpSize.Width : visualBounds.X + xOffset,
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 (4)
355marginWidths = rectThemeMargins.X + rectThemeMargins.Width; 444if (rectThemeMargins.X == -1) 448rectThemeMargins.X = rectContent.X; 730valBounds.Offset(borderWidths.X, borderWidths.Y);
winforms\Managed\System\WinForms\DataGridViewCell.cs (49)
3593this.DataGridView.RightToLeftInternal ? bounds.X : bounds.Right - dividerThickness, 3630graphics.FillRectangle(this.DataGridView.GetCachedBrush(dividerHeightColor), bounds.X, bounds.Bottom - dividerThickness, bounds.Width, dividerThickness); 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); 3669graphics.DrawLine(penBackColor, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 3670graphics.DrawLine(penControlLightLight, bounds.X, y1, bounds.X, y2); 3685graphics.DrawLine(penControlDark, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 3686graphics.DrawLine(penControlLightLight, bounds.X + 1, y1, bounds.X + 1, y2); 3701graphics.DrawLine(penControlLightLight, bounds.X, bounds.Y, bounds.X, bounds.Bottom - 1); 3702graphics.DrawLine(penControlDark, bounds.X + 1, y1, bounds.X + 1, y2); 3774graphics.DrawLine(penGridColor, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y); 3778x1 = bounds.X; 3794x1 = bounds.X; 3810x1 = bounds.X; 3835x1 = bounds.X; 3847graphics.DrawLine(penControlDark, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y); 3852x1 = bounds.X; 3864graphics.DrawLine(penControlLightLight, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y); 3872graphics.DrawLine(penGridColor, bounds.X, bounds.Bottom - 1, bounds.Right - 1, bounds.Bottom - 1); 3881graphics.DrawLine(penControlLightLight, bounds.X, bounds.Bottom - 1, x2, bounds.Bottom - 1); 3885x1 = bounds.X; 3896x1 = bounds.X; 4330iconBounds.X += cellBounds.X; 4356rectPadding = new Rectangle(bounds.X, bounds.Y, cellStyle.Padding.Right, bounds.Height); 4365rectPadding = new Rectangle(bounds.X, bounds.Y, cellStyle.Padding.Left, bounds.Height); 4508this.DataGridView.EditingControl.Location = new Point(editingControlBounds.X, editingControlBounds.Y); 4554if (cellClip.X - cellBounds.X >= borderAndPaddingWidths.X) 4556xEditingPanel = cellClip.X; 4557wEditingPanel -= cellClip.X - cellBounds.X; 4561xEditingPanel = cellBounds.X + borderAndPaddingWidths.X; 4562wEditingPanel -= borderAndPaddingWidths.X; 4574xEditingControl = cellBounds.X - cellClip.X; 4575wEditingControl = cellBounds.Width - borderAndPaddingWidths.X - borderAndPaddingWidths.Width; 5154rowRect.X = columnRect.X;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (2)
845preferredSize.Width += borderWidths.X; 1174valBounds.Offset(borderWidths.X, borderWidths.Y);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (5)
703preferredSize.Width += rectThemeMargins.X + rectThemeMargins.Width; 794valBounds.Offset(borderWidths.X, borderWidths.Y); 881valBounds.Width -= rectThemeMargins.X + rectThemeMargins.Width; 885valBounds.X += rectThemeMargins.X; 886valBounds.Width -= rectThemeMargins.X + rectThemeMargins.Width;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (29)
755Size adjustedSize = new Size(size.Width - borderAndPaddingWidths.X - borderAndPaddingWidths.Width, 772if (x >= borderAndPaddingWidths.X + 1 && 773x <= borderAndPaddingWidths.X + dropWidth + 1) 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 (4)
483if (rectThemeMargins.X == -1) 487rectThemeMargins.X = rectContent.X; 492if (rectThemeMargins.X == 3 && 651valBounds.Offset(borderWidths.X, borderWidths.Y);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (11)
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)); 668imgBounds.X = bounds.X; 674imgBounds.X = bounds.X; 680imgBounds.X = bounds.X; 692imgBounds.X = bounds.X; 698imgBounds.X = bounds.X; 704imgBounds.X = bounds.X; 717imgBounds.X = bounds.X + (bounds.Width - imgBounds.Width) / 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 (53)
2567clip.X = this.layout.Data.X - this.mouseBarOffset - 1; 2568clip.Width = leftEdge - this.Columns[columnIndex].MinimumThickness - this.layout.Data.X + 3; 3026r.X = Math.Max(inside.Left, r.X); 3027r.X = Math.Min(r.X, inside.Right - r.Width); 3032r.X = Math.Min(inside.Right - r.Width, r.X); 3033r.X = Math.Max(r.X, inside.Left); 3044r.X = Math.Max(inside.Left, r.X); 3048r.X = Math.Min(inside.Right - 3, r.X); 3049r.X = Math.Max(r.X, 0); 3057Rectangle r = new Rectangle(inside.X, mouseY + this.mouseBarOffset - 1, inside.Width, 3); 4440Debug.Assert(newLayout.Data.X >= 0); 5722rectInsertionBar.X = Math.Max(this.layout.ColumnHeaders.X, 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); 6150newX = Math.Max(x + this.mouseBarOffset, this.layout.Data.X); 6330delta = x - this.layout.RowHeaders.X - this.RowHeadersWidth + 1; 7157width = rowRect.X - columnRect.X; 8272cx = data.X; 8278if ((this.RightToLeftInternal && cx < data.X) || 8309if ((this.RightToLeftInternal && cx < data.X) || 8356(this.RightToLeftInternal && cx - viewedColumnWidth < data.X))) 8360displayWidth = cx - data.X; 8397Debug.Assert(this.RightToLeftInternal || (x >= data.X - 1 && x < data.Right), "x must be inside the horizontal bounds of this.layout.Data"); 8398Debug.Assert(!this.RightToLeftInternal || (x >= data.X && x <= data.Right), "x must be inside the horizontal bounds of this.layout.Data"); 8400if (!this.RightToLeftInternal && x == data.X - 1) 8416cx = data.X; 8422((!this.RightToLeftInternal && cx < data.Right) || (this.RightToLeftInternal && cx >= data.X))) 8461((!this.RightToLeftInternal && cx < data.Right) || (this.RightToLeftInternal && cx >= data.X))) 8535x = this.layout.Data.X; 9181Rectangle rowRect = new Rectangle(data.X, 10193Invalidate(new Rectangle(data.X, top, data.Width, bottom - top)); 10479rightToLeftInternal ? this.layout.Data.X - this.vertScrollBar.Width : this.layout.Data.Right, 10496rightToLeftInternal ? this.layout.Inside.X + this.layout.ResizeBoxRect.Width : this.layout.Inside.X, 10537rightToLeftInternal ? this.layout.Data.X - this.vertScrollBar.Width : this.layout.Data.Right, 14969rightArea.Width -= leftEdge - rightArea.X; 17880right = new Rectangle(oldClientRectangle.X + oldClientRectangle.Width - borderWidth, 17884bottom = new Rectangle(oldClientRectangle.X, 17902right = new Rectangle(newClientRectangle.X + newClientRectangle.Width - borderWidth, 17911bottom = new Rectangle(newClientRectangle.X, 17921right = new Rectangle(oldGridFocusRectangle.X + oldGridFocusRectangle.Width - 1, 17927bottom = new Rectangle(oldGridFocusRectangle.X, 19919cellBounds.X = bandBounds.X + cx; 19996cellBounds.X = scrollingBounds.X + cx; 26178while (xColumnRightEdge < this.layout.Data.X && this.Columns.DisplayInOrder(firstDisplayedScrollingColumn, columnIndex)) 26186if (xColumnRightEdge < this.layout.Data.X) 26447Debug.Assert(rowsRect.X > 0); 26470NativeMethods.RECT scrollArea = NativeMethods.RECT.FromXYWH(rowsRect.X, rowsRect.Y, rowsRect.Width, rowsRect.Height); 26474rowsRect.X = this.layout.Inside.X;
winforms\Managed\System\WinForms\DataGridViewRow.cs (2)
1631cellBounds.X = rowBounds.X + cx; 1718cellBounds.X = dataBounds.X + cx;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (4)
676borderAndPaddingHeights += rectThemeMargins.X; 786valBounds.Offset(borderWidths.X, borderWidths.Y); 857valBounds.Height -= rectThemeMargins.X + rectThemeMargins.Width; 858valBounds.Y += rectThemeMargins.X;
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)
389ptTextLocation.X = cellBounds.X; 394ptTextLocation.X = cellBounds.X + (cellBounds.Width - sizeText.Width) / 2; 404ptTextLocation.X = cellBounds.X; 409ptTextLocation.X = cellBounds.X + (cellBounds.Width - sizeText.Width) / 2; 419ptTextLocation.X = cellBounds.X; 424ptTextLocation.X = cellBounds.X + (cellBounds.Width - sizeText.Width) / 2;
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (2)
271grayStrip.Bounds = new Rectangle(pageHostBounds.X, BUTTON_PAD, 292bounds.X = bounds.Width + bounds.X - BUTTON_WIDTH;
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); 183graphics.DrawLine(SystemPens.ControlDark, r.X + 1, r.Bottom, 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)
996windowBounds.X, 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); 1193iconBounds.X -= windowBounds.X; 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 (21)
1168bounds.X -= screen.X; 1174SetDesktopBounds(value.X, value.Y, value.Width, value.Height); 1192loc.X -= screen.X; 2208&& restoreBounds.X == -1 4023cp.X = Math.Max(clientRect.X,clientRect.X + (clientRect.Width - cp.Width)/2); 4039cp.X = Math.Max(screenRect.X,screenRect.X + (screenRect.Width - cp.Width)/2); 4461if (p.X < screenRect.X) 4462p.X = screenRect.X; 4463else if (p.X + s.Width > screenRect.X + screenRect.Width) 4464p.X = screenRect.X + screenRect.Width - s.Width; 4507p.X = Math.Max(screenRect.X,screenRect.X + (screenRect.Width - Width)/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); 7217mmi.ptMaxPosition.x = maximizedBounds.X; 7856r.Width -= r.X; 7858toolInfo.rect = NativeMethods.RECT.FromXYWH(r.X, r.Y, r.Width, r.Height);
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (7)
200clipRight.Width = clipMiddle.X - boxBounds.X; 206clipRight.Width = boxBounds.Right - clipRight.X; 295g.DrawLine(light, bounds.Left + 1, boxTop, textBounds.X - 2, boxTop); 296g.DrawLine(dark, bounds.Left, boxTop - 1, textBounds.X - 3, boxTop - 1); 299g.DrawLine(light, textBounds.X + textBounds.Width + 1, boxTop, bounds.Width - 1, boxTop); 300g.DrawLine(dark, textBounds.X + textBounds.Width + 2, boxTop - 1, bounds.Width - 2, boxTop - 1);
winforms\Managed\System\WinForms\Label.cs (5)
1089int xLoc = r.X + 2; 1093xLoc = (r.X+r.Width - 4)-pointImageSize.Width; 1096xLoc = r.X + (r.Width - pointImageSize.Width)/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)
279bool xChangedButNotSpecified = ((specified & BoundsSpecified.X) == BoundsSpecified.None) & x != originalBounds.X;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (10)
136int left = layout.Left + displayRect.X; 138int right = layout.Right + displayRect.X; 193if (right < left || cachedBounds.Width != element.Bounds.Width || cachedBounds.X != element.Bounds.X) { 278Rectangle newElementBounds = new Rectangle(remainingBounds.X, remainingBounds.Y, elementSize.Width, elementSize.Height); 289Rectangle newElementBounds = new Rectangle(remainingBounds.X, remainingBounds.Bottom - elementSize.Height, elementSize.Width, elementSize.Height); 300Rectangle newElementBounds = new Rectangle(remainingBounds.X, remainingBounds.Y, elementSize.Width, elementSize.Height); 326Rectangle newElementBounds = new Rectangle(remainingBounds.X, remainingBounds.Y, elementSize.Width, elementSize.Height); 576anchorInfo.Left -= parentDisplayRect.X; 578anchorInfo.Right -= parentDisplayRect.X;
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (7)
112displayRect.Width = Int32.MaxValue - displayRect.X; 119Rectangle measureBounds = new Rectangle(displayRect.X, displayRect.Y, displayRect.Width, displayRect.Height - layoutSize.Height); 129Rectangle rowBounds = new Rectangle(displayRect.X, 250rowSize.Width = location.X - rowBounds.X; 352Point pt = new Point(value.X, value.Y); 420newBounds.X = DisplayRect.Right - bounds.X - bounds.Width + ElementProxy.Margin.Left - ElementProxy.Margin.Right; 427Point pt = new Point(newBounds.X, newBounds.Y);
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (8)
212if (rect1.X <= rect2.X && rect1.X + rect1.Width >= rect2.X + rect2.Width) { 216if (rect2.X <= rect1.X && rect2.X + rect2.Width >= rect1.X + rect1.Width) {
winforms\Managed\System\WinForms\Layout\TableLayout.cs (1)
1242elementBounds.X = cellBounds.X + (cellBounds.Right - elementBounds.Right);
winforms\Managed\System\WinForms\LinkLabel.cs (3)
512xLoc = clientRect.X; 525xLoc = clientRect.X; 701Rectangle visualRectangle = new Rectangle(clientRectWithPadding.X + iLeftMargin,
winforms\Managed\System\WinForms\ListView.cs (1)
4715rectInvalid.Width += rectInvalid.X;
winforms\Managed\System\WinForms\MDIClient.cs (2)
212int sx = (int)Math.Round(bounds.X * dx); 214int sw = (int)Math.Round((bounds.X + bounds.Width) * dx - sx);
winforms\Managed\System\WinForms\NativeMethods.cs (1)
4036this.left = r.X;
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 (4)
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);
winforms\Managed\System\WinForms\PropertyGridInternal\CategoryGridEntry.cs (2)
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 (12)
1881int stringX = rect.X + this.PropertyLabelIndent; 1899rect.Width = totalWidth - rect.X; 1907g.FillRectangle(blank, rect.X, rect.Y, rect.Width, rect.Height); 1912g.FillRectangle(stripeBrush, rect.X, rect.Y, borderWidth, rect.Height); 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 (19)
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)); 1641loc.X = Math.Min(rectScreen.X + rectScreen.Width - size.Width, 1642Math.Max(rectScreen.X, loc.X + rect.X + rect.Width - size.Width)); 1720loc.X = Math.Min(rectScreen.X + rectScreen.Width - size.Width, 1721Math.Max(rectScreen.X, loc.X + rect.X + rect.Width - size.Width)); 2373r.Width -= r.X; 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); 4428Rectangle rectTarget = new Rectangle(rect.X+rect.Width-sizeBtn.Width, 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); 267rect.X = displayRect.X; 557int ctlRight = -display.X + bounds.X + bounds.Width + scrollMargin.Width; 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); 716SetDisplayRectLocation(displayRect.X, -pos); 725int pos = -displayRect.X; 863 if (displayRectangle.X != x) 865 xDelta = x - displayRectangle.X; 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); 946int xCalc = displayRect.X; 958if (bounds.X < xMargin) { 959xCalc = displayRect.X + xMargin - bounds.X; 961else if (bounds.X + bounds.Width + xMargin > client.Width) { 963xCalc = client.Width - (bounds.X + bounds.Width + xMargin - displayRect.X); 965if (bounds.X + xCalc - displayRect.X < xMargin) { 966xCalc = displayRect.X + xMargin - bounds.X; 1089int x = displayRect.X; 1146int x = displayRect.X; 1245else if(-displayRect.X >= HorizontalScroll.minimum && -displayRect.X < HorizontalScroll.maximum) { 1246HorizontalScroll.value = -displayRect.X; 1268HorizontalScroll.Value = -displayRect.X; 1370SetDisplayRectLocation(displayRect.X, -pos); 1392int pos = -displayRect.X;
winforms\Managed\System\WinForms\SplitContainer.cs (9)
858OnSplitterMoved(new SplitterEventArgs(SplitterRectangle.X + SplitterRectangle.Width/2, SplitterRectangle.Y + SplitterRectangle.Height/2, SplitterRectangle.X, SplitterRectangle.Y)); 910r.X = splitterRect.X - Left; 1180int xSplit = r.X; 1182SplitterCancelEventArgs se = new SplitterCancelEventArgs(this.Left + SplitterRectangle.X + SplitterRectangle.Width/2, this.Top + SplitterRectangle.Y + SplitterRectangle.Height/2, xSplit, ySplit); 1284int xSplit = r.X; 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)
677r.X = bounds.X + splitSize; 681r.X = bounds.X + bounds.Width - splitSize - r.Width; 776SafeNativeMethods.PatBlt(new HandleRef(ParentInternal, dc), r.X, r.Y, r.Width, r.Height, NativeMethods.PATINVERT); 894int xSplit = r.X; 910int xSplit = r.X;
winforms\Managed\System\WinForms\StatusBar.cs (2)
1110if (x > bounds.X + bounds.Width - SizeGripWidth) { 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 (9)
426startx = displayRect.X + (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); 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\ToolStrip.cs (18)
269CommonProperties.UpdateSpecifiedBounds(this, bounds.X, bounds.Y, bounds.Width, bounds.Height, BoundsSpecified.Location); 2344Point midPointOfCurrent = new Point(selectedItem.Bounds.X + selectedItem.Width / 2, 2365Point otherItemMidLocation = new Point(otherItem.Bounds.X + otherItem.Width/2, (down)? otherItem.Bounds.Top : otherItem.Bounds.Bottom); 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); 3937int start = lastInsertionMarkRect.X; 3964new Point[] { new Point(lastInsertionMarkRect.X, horizontalBeamStart), new Point(lastInsertionMarkRect.Right-1, horizontalBeamStart), // first vertical line 3965 new Point(lastInsertionMarkRect.X, horizontalBeamStart+1), new Point(lastInsertionMarkRect.Right-1, horizontalBeamStart+1), //second vertical line 3969new Point[] { new Point(lastInsertionMarkRect.X, start), new Point(lastInsertionMarkRect.X, start + widthOfBeam-1), //left line 3970 new Point(lastInsertionMarkRect.X+1, start+1), new Point(lastInsertionMarkRect.X+1, start + widthOfBeam-2), //second left line 4291gripRectangle.X = Math.Max(0, displayRect.X - Grip.GripThickness); 4446bool verticallyContained = clientBounds.Contains(clientBounds.X, item.Bounds.Top) && 4447 clientBounds.Contains(clientBounds.X, item.Bounds.Bottom); 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 (11)
520if (!displayRect.Contains(displayRect.X, nextItem.Bounds.Top) 521|| !displayRect.Contains(displayRect.X, nextItem.Bounds.Bottom)) { 533if ( (this.Items[index].Visible && displayRect.Contains(displayRect.X, this.Items[index].Bounds.Top - delta)) 543if (displayRect.Contains(displayRect.X, this.Items[index].Bounds.Bottom - delta)) { 669if (displayRectangle.Contains(displayRectangle.X, adjustedLastItemBounds.Top) 670&& displayRectangle.Contains(displayRectangle.X, adjustedLastItemBounds.Bottom)) { 690if (displayRectangle.Contains(displayRectangle.X, adjustedLastItemBounds.Top) 691&& displayRectangle.Contains(displayRectangle.X, adjustedLastItemBounds.Bottom)) { 814if (this.indexOfFirstDisplayedItem == -1 && displayRectangle.Contains(displayRectangle.X, item.Bounds.Top)) { 822UpScrollButton.Enabled = !displayRectangle.Contains(displayRectangle.X, minY); 823DownScrollButton.Enabled = !displayRectangle.Contains(displayRectangle.X, maxY);
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); 269 g.DrawLine(p, bounds.X + indent, bounds.Height - 1, bounds.Width - 1, bounds.Height - 1); 272 g.DrawLine(p, bounds.X, bounds.Y + indent, bounds.X, 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 (1)
1195rect.X = Math.Max(rect.X,0);
winforms\Managed\System\WinForms\ToolStripOverflow.cs (1)
101SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.Height, specified);
winforms\Managed\System\WinForms\ToolStripPanel.cs (7)
1083Point endLocation = (Orientation == Orientation.Horizontal) ? new Point (clientLocation.X, row.Bounds.Y) : new Point (row.Bounds.X, clientLocation.Y); 1574if (one.Bounds.X < two.Bounds.X) { 1578if (one.Bounds.X == two.Bounds.X) { 1601if (one.Bounds.X < two.Bounds.X) {
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 (4)
510cachedBounds.X = Math.Max(0, cachedBounds.X - margins[i] - c.Margin.Top); 1295if (Row.Cells[index].Bounds.X >= locationToDrag.X) { 1473int x = previousRowBounds.X + previousRowBounds.Width - (previousRowBounds.Width >> 2); 1475dragBounds.Width += dragBounds.X - x;
winforms\Managed\System\WinForms\ToolStripProfessionalLowResolutionRenderer.cs (4)
53g.DrawLine(p, bounds.X + indent, bounds.Y, bounds.Width - 1, bounds.Y); 55g.DrawLine(p, bounds.X + indent, bounds.Height - 1, bounds.Width - 1, bounds.Height - 1); 58g.DrawLine(p, bounds.X, bounds.Y + indent, bounds.X, bounds.Height - 1);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (19)
194overflowArrowRect.X, 196overflowArrowRect.X, 199overflowArrowRect.X + 1, 201overflowArrowRect.X + 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); 1122Point top1 = new Point(overflowBoundsFill.X - 2, 0); 1123Point top2 = new Point(overflowBoundsFill.X - 1, 1); 1140Rectangle fillRect = new Rectangle(overflowBoundsFill.X - 1, 0, 1, 1); 1147g.FillRectangle(b, overflowBoundsFill.X, overflowBoundsFill.Top - 1, 1, 1); 1284bounds.Width = dropDownMenu.Width - bounds.X; 1290bounds.Width = dropDownMenu.Width - bounds.X - dropDownMenu.Padding.Right; 1396g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
winforms\Managed\System\WinForms\ToolStripRenderer.cs (2)
1034baseRect.X = sizeGripBounds.Width - baseRect.X - baseRect.Width; 1036baseRect.Offset(sizeGripBounds.X, sizeGripBounds.Bottom - 12 /*height of pyramid (10px) + 2px padding from bottom*/);
winforms\Managed\System\WinForms\ToolStripRenderEventArgs.cs (1)
129return new Rectangle(itemBounds.X+1, 0, itemBounds.Width -2, 2);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (1)
493itemLocation.X = bounds.X;
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); 173float x = bounds.X + ((float)(numTicks - 1)) * inc; 196visualStyleRenderer.DrawEdge(g, new Rectangle(bounds.X, bounds.Y, bounds.Width, lineWidth), Edges.Top, edgeStyle, EdgeEffects.None); 205visualStyleRenderer.DrawEdge(g, new Rectangle(bounds.X, (int)Math.Round(y), bounds.Width, lineWidth), Edges.Top, edgeStyle, EdgeEffects.None);
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)
110bounds.X +(bounds.Width - updnHeight)/2, 116bounds.X +(bounds.Width - lrWidth)/2,
winforms\Managed\System\WinForms\VScrollProperties.cs (1)
44return ParentControl.DisplayRectangle.X;
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (2)
306lprcPosRect.left = this.Host.Bounds.X; 308lprcPosRect.right = this.Host.Bounds.Width + this.Host.Bounds.X;
System.Windows.Forms.DataVisualization (25)
Common\General\ChartGraphics.cs (2)
2420 absPositionRounded.Width = (int)Math.Round(absPosition.Right) - absPositionRounded.X; 2559 absPositionRounded.Width = (int)Math.Round(absPosition.Right) - absPositionRounded.X;
Common\General\Legend.cs (12)
529 legendPosition.X + this._offset.Width + this.GetBorderSize(), 2471 separatorPosition.Width = right - separatorPosition.X; 2541 this._legendItemsAreaPosition.X + this._legendItemsAreaPosition.Width / 2 - step * (float)Math.Floor(markerCount/2f), 4114 int newX = legendPosition.X; 4117 fillRect.Width += fillRect.X - legendPosition.X; 4163 if(fillRect.X < legendPosition.X) 4165 fillRect.X += legendPosition.X - fillRect.X; 4166 fillRect.Width -= (legendPosition.X - fillRect.X);
Common\General\LegendColumns.cs (7)
2145 imagePosition.X = (int)((this.cellPosition.X + this.cellPosition.Width/2f) - imagePosition.Width/2f); 2153 imagePosition.X = this.cellPosition.X; 2250 seriesMarkerPosition.X = (int)((this.cellPosition.X + this.cellPosition.Width/2f) - seriesMarkerPosition.Width/2f); 2258 seriesMarkerPosition.X = this.cellPosition.X; 2314imageScale.X = (int)((seriesMarkerPosition.X + seriesMarkerPosition.Width / 2f) - imageScale.Width / 2f); 2368 point1.X = seriesMarkerPosition.X; 2423 point.X = (int)(seriesMarkerPosition.X + seriesMarkerPosition.Width/2f);
WinForm\Utilities\AccessibleObject.cs (1)
316rect.X = (int)(rect.X * this._chartScale.X);
WinForm\Utilities\Printing.cs (3)
153 graphics.TranslateTransform(position.X, position.Y); 255marginPixel.X = (int)(marginPixel.X * (ev.Graphics.DpiX / 100.0f)); 261Rectangle chartPosition = new Rectangle(marginPixel.X, marginPixel.Y, _chartImage.Width, _chartImage.Height);
System.Workflow.Activities (2)
Designers\StateDesigner.cs (2)
802int midHorz = bounds.X + (bounds.Width / 2); 813int midHorz = bounds.X + (bounds.Width / 2);
System.Workflow.ComponentModel (41)
AuthoringOM\Design\DesignerHelpers.cs (5)
193graphics.DrawImage(image, imageRectangle, source.X, source.Y, source.Width, source.Height, GraphicsUnit.Pixel, imageAttributes); 332gridStart.X = viewableRectangle.X - (viewableRectangle.X % ambientTheme.GridSize.Width); 1028gridStart.X = viewableRectangle.X - (viewableRectangle.X % gridUnit.Width);
AuthoringOM\Design\DesignerWidgets.cs (11)
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))) 480buttonRectangle.X = this.bounds.X + this.margin.Width; 487buttonRectangle.X = this.bounds.X + this.margin.Width + buttonRectangle.Size.Width + this.itemStrip.Size.Width; 488if (buttonRectangle.X >= this.bounds.Right) 495buttonRectangle.X = this.bounds.X + this.margin.Width; 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); 2849int startLocation = (scrollButton == ScrollButton.Left) ? this.bounds.X : this.bounds.Right - scrollButtonSize.Width;
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)
287x = Math.Max(x, clipBounds.X);
AuthoringOM\Design\ParallelActivityDesigner.cs (3)
289dropTargets[0].Location = new Point(bounds.X, firstDesigner.Location.Y); 434connectorPoints[0].X = dropTargetRectangle.X + dropTargetRectangle.Width / 2; 452connectorPoints[1].X = dropTargetRectangle.X + dropTargetRectangle.Width / 2;
AuthoringOM\Design\SequentialActivityDesigner.cs (6)
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); 412DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, new Point[] { new Point(connectors[0].X + connectors[0].Width / 2, helpTextRectangle.Bottom + 2), new Point(connectors[0].X + connectors[0].Width / 2, connectors[0].Bottom - 2) }, LineAnchor.None, compositeDesignerTheme.ConnectorEndCap); 567grabHandles[0] = new Rectangle(bounds.X + bounds.Width / 2 - ambientTheme.SelectionSize.Width / 2, bounds.Y, ambientTheme.SelectionSize.Width, ambientTheme.SelectionSize.Height); 568grabHandles[1] = new Rectangle(bounds.X + bounds.Width / 2 - ambientTheme.SelectionSize.Width / 2, bounds.Bottom - ambientTheme.SelectionSize.Height, 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); 430insersectedLogicalViewPort.X = pageLayoutData.LogicalPageBounds.X + deltaLocation.X; 457Point deltaLocation = new Point(intersectedLogicalViewPort.X - pageLayoutData.LogicalPageBounds.X, intersectedLogicalViewPort.Y - pageLayoutData.LogicalPageBounds.Y); 465insersectedPhysicalViewPort.X = pageLayoutData.ViewablePageBounds.X + deltaLocation.X; 564viewPortBitmapArea.X = pageLayoutData.LogicalPageBounds.X - viewPortData.LogicalViewPort.X; 662bitmapDrawingPoint.X = pageLayoutData.ViewablePageBounds.X + Math.Abs(pageLayoutData.LogicalPageBounds.X - intersectedViewPort.X); 670viewPortBitmapArea.X = intersectedViewPort.X - viewPortData.LogicalViewPort.X;
System.WorkflowServices (1)
System\Workflow\Activities\Design\GradientPanel.cs (1)
88Rectangle shadowRect = new Rectangle(frameRect.X, frameRect.Y + 6, frameRect.Width, frameRect.Height - 5);