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