90 references to Offset
System.Drawing.Primitives (1)
System\Drawing\Rectangle.cs (1)
326public void Offset(Point pos) => Offset(pos.X, pos.Y);
System.Windows.Forms (75)
System\Windows\Forms\Control.cs (1)
7920cliprect.Offset(-offs.X, -offs.Y);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (4)
473r.Offset(1, 1); 476r.Offset(-1, -1); 500r.Offset(1, 1); 503r.Offset(-1, -1);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (1)
622layout.TextBounds.Offset(1, 1);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (3)
29layout.TextBounds.Offset(-1, -1); 32layout.ImageBounds.Offset(-1, -1); 45layout.Focus.Offset(-(focusRectFixup + 1), -2);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (5)
681valBounds.Offset(borderWidths.X, borderWidths.Y); 700valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 704valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 962valBounds.Offset(DATAGRIDVIEWBUTTONCELL_horizontalTextMargin, DATAGRIDVIEWBUTTONCELL_verticalTextMargin); 969valBounds.Offset(1, 1);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (3)
1064valBounds.Offset(borderWidths.X, borderWidths.Y); 1124valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 1128valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (6)
766valBounds.Offset(borderWidths.X, borderWidths.Y); 781valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 785valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 881valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 885valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 905valBounds.Offset(HorizontalTextMarginLeft, 0);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (5)
1914valBounds.Offset(borderWidths.X, borderWidths.Y); 1941valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 1945valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 2302textBounds.Offset(HorizontalTextMarginLeft, verticalTextMarginTop); 2307textBounds.Offset(HorizontalTextMarginLeft - 1, verticalTextMarginTop);
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
539bounds.Offset(borderWidths.X, borderWidths.Y);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (2)
746valBounds.Offset(borderWidths.X, borderWidths.Y); 768imageBounds.Offset(
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (4)
906valBounds.Offset(borderWidths.X, borderWidths.Y); 927valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 931valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 943valBounds.Offset(HorizontalTextMarginLeft, VerticalTextMarginTop);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (6)
648valBounds.Offset(borderWidths.X, borderWidths.Y); 662valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 666valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 746valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 750valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 842valBounds.Offset(HorizontalTextMarginLeft + ContentMarginWidth, VerticalTextMargin);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (4)
671valBounds.Offset(borderWidths.X, borderWidths.Y); 695valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 699valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 724valBounds.Offset(DATAGRIDVIEWTEXTBOXCELL_horizontalTextMarginLeft, verticalTextMarginTop);
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (4)
235valBounds.Offset(borderWidths.X, borderWidths.Y); 285valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 289valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 300valBounds.Offset(DATAGRIDVIEWTOPLEFTHEADERCELL_horizontalTextMarginLeft, DATAGRIDVIEWTOPLEFTHEADERCELL_verticalTextMargin);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (1)
48inside.Offset(1, 1);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (2)
1897rect.Offset(1, 2); 1902rect.Offset(1, 1);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (4)
679r.Offset(-newOrigin.X, -newOrigin.Y); 1111clipRect.Offset(-newOrigin.X, -newOrigin.Y); 1166clipRect.Offset(-newOrigin.X, -newOrigin.Y); 4372rect.Offset(1, 1);
System\Windows\Forms\Controls\TextBox\TextBox.cs (6)
878rectangle.Offset(0, 1); 882rectangle.Offset(1, 1); 886rectangle.Offset(0, 1); 897rectangle.Offset(0, 1); 901rectangle.Offset(1, 1); 905rectangle.Offset(0, 1);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
3547clippingRect.Offset(-bounds.X, -bounds.Y);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.ToolStripDropDownButtonInternalLayout.cs (1)
65options.Client.Offset(widthOfDropDown, 0);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (4)
181overflowArrowRect.Offset(1 * rightToLeftShift, 1); 185overflowArrowRect.Offset(-1 * rightToLeftShift, -1); 519shadowRects[i].Offset(-xOffset, 0); 528shadowRects[i].Offset(xOffset, -1);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (3)
988baseRect.Offset(sizeGripBounds.X, sizeGripBounds.Bottom - 12 /*height of pyramid (10px) + 2px padding from bottom*/); 992baseRect.Offset(1, -1); 996baseRect.Offset(-1, -1);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (2)
315dropDownButtonBounds.Offset(splitButtonButtonBounds.Right + _splitterWidth, 0); 321splitButtonButtonBounds.Offset(DropDownButtonWidth + _splitterWidth, 0);
System\Windows\Forms\Rendering\ControlPaint.cs (2)
2008layoutRectangle.Offset(1, 1); 2012layoutRectangle.Offset(-1, -1);
System.Windows.Forms.Design (13)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
209bounds.Offset(PushButtonWidth, 0);
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
150rectangle.Offset(scrollPosition.X, scrollPosition.Y);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (1)
732_cachedDragRect.Offset(offset.X, offset.Y);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
625controlBounds.Offset(-controlBounds.Width, 0);
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (1)
325newRectangle.Offset(_lastOffset.X, _lastOffset.Y);
System\Windows\Forms\Design\DesignerUtils.cs (4)
483bounds.Offset(-offset, -offset); 487bounds.Offset(-offset, offset); 491bounds.Offset(-offset, -offset); 495bounds.Offset(offset, -offset);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
230marginBounds.Offset(offset.X, offset.Y); 231bounds.Offset(offset.X, offset.Y);
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
377newRect.Offset(oldOffset.X, oldOffset.Y); 398newRect.Offset(newOffset.X, newOffset.Y);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Automation\UiaTextRange.cs (1)
403rectangle.Offset(mapClientToScreen.X, mapClientToScreen.Y);