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