85 references to Offset
System.Drawing (1)
commonui\System\Drawing\Rectangle.cs (1)
488Offset(pos.X, pos.Y);
System.Windows.Forms (74)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (5)
633r.Offset(1, 1); 636r.Offset(-1, -1); 666r.Offset(1, 1); 669r.Offset(-1, -1); 1400layout.textBounds.Offset(1, 1);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (3)
32layout.textBounds.Offset(-1, -1); 34layout.imageBounds.Offset(-1, -1); 44layout.focus.Offset(-(focusRectFixup + 1), -2);
winforms\Managed\System\WinForms\Control.cs (1)
9418cliprect.Offset(-offs.X,-offs.Y);
winforms\Managed\System\WinForms\ControlPaint.cs (2)
1967layoutRectangle.Offset(1, 1); 1971layoutRectangle.Offset(-1, -1);
winforms\Managed\System\WinForms\DataGridParentRows.cs (1)
1007textBounds.Offset(0, 2);
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (1)
536dataBounds.Offset(0, bWidth); // use bWidth, not 1
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (2)
485bounds.Offset(xMargin, 2 * yMargin); 615rect.Offset(0,2 * yMargin);
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (5)
730valBounds.Offset(borderWidths.X, borderWidths.Y); 745valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 749valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 1013valBounds.Offset(DATAGRIDVIEWBUTTONCELL_horizontalTextMargin, DATAGRIDVIEWBUTTONCELL_verticalTextMargin); 1020valBounds.Offset(1, 1);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (3)
1174valBounds.Offset(borderWidths.X, borderWidths.Y); 1228valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 1232valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (6)
794valBounds.Offset(borderWidths.X, borderWidths.Y); 810valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 814valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 904valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 908valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 927valBounds.Offset(DATAGRIDVIEWCOLUMNHEADERCELL_horizontalTextMarginLeft, 0);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (5)
2147valBounds.Offset(borderWidths.X, borderWidths.Y); 2178valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 2182valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 2586textBounds.Offset(DATAGRIDVIEWCOMBOBOXCELL_horizontalTextMarginLeft, verticalTextMarginTop); 2591textBounds.Offset(DATAGRIDVIEWCOMBOBOXCELL_horizontalTextMarginLeft - 1, verticalTextMarginTop);
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
651valBounds.Offset(borderWidths.X, borderWidths.Y);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (3)
819valBounds.Offset(borderWidths.X, borderWidths.Y); 830imgBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 834imgBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (4)
1012valBounds.Offset(borderWidths.X, borderWidths.Y); 1030valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 1034valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 1046valBounds.Offset(DATAGRIDVIEWLINKCELL_horizontalTextMarginLeft, DATAGRIDVIEWLINKCELL_verticalTextMarginTop);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (6)
786valBounds.Offset(borderWidths.X, borderWidths.Y); 799valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 803valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 877valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 881valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 969valBounds.Offset(DATAGRIDVIEWROWHEADERCELL_horizontalTextMarginLeft + DATAGRIDVIEWROWHEADERCELL_contentMarginWidth, DATAGRIDVIEWROWHEADERCELL_verticalTextMargin);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (4)
697valBounds.Offset(borderWidths.X, borderWidths.Y); 726valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 730valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 756valBounds.Offset(DATAGRIDVIEWTEXTBOXCELL_horizontalTextMarginLeft, verticalTextMarginTop);
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (4)
276valBounds.Offset(borderWidths.X, borderWidths.Y); 322valBounds.Offset(cellStyle.Padding.Right, cellStyle.Padding.Top); 326valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 336valBounds.Offset(DATAGRIDVIEWTOPLEFTHEADERCELL_horizontalTextMarginLeft, DATAGRIDVIEWTOPLEFTHEADERCELL_verticalTextMargin);
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (1)
180inside.Offset(1,1);
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (2)
2190rect.Offset(1, 2); 2194rect.Offset(1, 1);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (4)
849r.Offset(-newOrigin.X, -newOrigin.Y); 1283cr.Offset(-newOrigin.X, -newOrigin.Y); 1326cr.Offset(-newOrigin.X, -newOrigin.Y); 4482rect.Offset(1,1);
winforms\Managed\System\WinForms\ToolStrip.cs (1)
3724clippingRect.Offset(-bounds.X, -bounds.Y);
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (1)
284options.client.Offset(widthOfDropDown, 0);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (4)
170overflowArrowRect.Offset(1*rightToLeftShift, 1); 174overflowArrowRect.Offset(-1*rightToLeftShift, -1); 465shadowRects[i].Offset(-xOffset, 0); 474shadowRects[i].Offset(xOffset, -1);
winforms\Managed\System\WinForms\ToolStripRenderer.cs (3)
1036baseRect.Offset(sizeGripBounds.X, sizeGripBounds.Bottom - 12 /*height of pyramid (10px) + 2px padding from bottom*/); 1039baseRect.Offset(1, -1); 1042baseRect.Offset(-1, -1);
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (2)
385dropDownButtonBounds.Offset(splitButtonButtonBounds.Right+splitterWidth, 0); 390splitButtonButtonBounds.Offset(DropDownButtonWidth+splitterWidth, 0);
System.Workflow.Activities (3)
Designers\SetStateDesigner.cs (2)
46textRectangle.Offset(0, (-targetStateSize.Height - margin.Height) / 2); 57imageRectangle.Offset(0, (-targetStateSize.Height - margin.Height) / 2);
Designers\StateDesigner.cs (1)
1503bounds.Offset(Separator.Width - this.Location.X, Separator.Height - this.Location.Y);
System.Workflow.ComponentModel (7)
AuthoringOM\Design\DesignerHelpers.cs (2)
315bounds.Offset(1, 1); 449shadowRectangle.Offset(offset.Width, offset.Height);
AuthoringOM\Design\DesignerWidgets.cs (4)
166buttonBounds.Offset(1, 1); 1422rectangle.Offset(-Palette.DropShadowWidth, -Palette.DropShadowWidth); 2694scrollbuttonRectangle.Offset(1, 1); 2704scrollbuttonRectangle.Offset(1, 1);
AuthoringOM\Design\MessageFilters\DragDropManager.cs (1)
676descriptionRectangle.Offset(imageRectangle.Width + AmbientTheme.DragImageMargins.Width, 0);