15 writes to Right
System.Windows.Forms (15)
winforms\Managed\System\WinForms\Control.cs (2)
11511
padding.
Right
= (int)Math.Round(padding.Right * dx);
11513
margins.
Right
= (int)Math.Round(margins.Right * dx);
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (1)
439
value.
Right
= Math.Max(0, value.Right);
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (2)
142
padding.
Right
= Math.Max(0, padding.Right);
369
padding.
Right
= temp;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (1)
1222
elementMargin.
Right
= elementMargin.Left;
winforms\Managed\System\WinForms\Padding.cs (1)
244
Right
= 0;
winforms\Managed\System\WinForms\ScrollableControl.cs (1)
1656
padding.
Right
= value;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (7)
159
padding.
Right
= 0;
1019
cellMargin.
Right
= 0;
1026
cellMargin.
Right
= 0;
1089
cellMargin.
Right
= 0;
1096
cellMargin.
Right
= 0;
1154
cellMargin.
Right
= 0;
1161
cellMargin.
Right
= 0;
57 references to Right
System.Windows.Forms (55)
winforms\Managed\System\WinForms\ArrangedElement.cs (2)
77
Debug.Assert((value.
Right
>= 0 && value.Left >= 0 && value.Top >= 0 && value.Bottom >=0), "who's setting margin negative?");
87
Debug.Assert((value.
Right
>= 0 && value.Left >= 0 && value.Top >= 0 && value.Bottom >=0), "who's setting padding negative?");
winforms\Managed\System\WinForms\Control.cs (2)
11511
padding.Right = (int)Math.Round(padding.
Right
* dx);
11513
margins.Right = (int)Math.Round(margins.
Right
* dx);
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
745
valBounds.Offset(cellStyle.Padding.
Right
, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\DataGridViewCell.cs (5)
4356
rectPadding = new Rectangle(bounds.X, bounds.Y, cellStyle.Padding.
Right
, bounds.Height);
4361
rectPadding.X = bounds.Left + cellStyle.Padding.
Right
;
4367
rectPadding.X = bounds.Right - cellStyle.Padding.
Right
;
4368
rectPadding.Width = cellStyle.Padding.
Right
;
4547
borderAndPaddingWidths.Width += cellStyle.Padding.
Right
;
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (3)
429
if (value.Left < 0 || value.
Right
< 0 || value.Top < 0 || value.Bottom < 0)
439
value.Right = Math.Max(0, value.
Right
);
453
Debug.Assert(value.
Right
>= 0);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
1228
valBounds.Offset(cellStyle.Padding.
Right
, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (2)
810
valBounds.Offset(cellStyle.Padding.
Right
, cellStyle.Padding.Top);
904
valBounds.Offset(cellStyle.Padding.
Right
, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (2)
752
borderAndPaddingWidths.Width += cellStyle.Padding.
Right
;
2178
valBounds.Offset(cellStyle.Padding.
Right
, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
830
imgBounds.Offset(cellStyle.Padding.
Right
, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
1030
valBounds.Offset(cellStyle.Padding.
Right
, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (2)
799
valBounds.Offset(cellStyle.Padding.
Right
, cellStyle.Padding.Top);
877
valBounds.Offset(cellStyle.Padding.
Right
, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
726
valBounds.Offset(cellStyle.Padding.
Right
, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (1)
322
valBounds.Offset(cellStyle.Padding.
Right
, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (1)
420
newBounds.X = DisplayRect.Right - bounds.X - bounds.Width + ElementProxy.Margin.Left - ElementProxy.Margin.
Right
;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (2)
142
padding.Right = Math.Max(0, padding.
Right
);
368
padding.Bottom = padding.
Right
;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (1)
1221
int temp = elementMargin.
Right
;
winforms\Managed\System\WinForms\Padding.cs (13)
136
return Left +
Right
;
183
return new Padding(p1.Left + p2.Left, p1.Top + p2.Top, p1.
Right
+ p2.
Right
, p1.Bottom + p2.Bottom );
195
return new Padding(p1.Left - p2.Left, p1.Top - p2.Top, p1.
Right
- p2.
Right
, p1.Bottom - p2.Bottom );
204
return p1.Left == p2.Left && p1.Top == p2.Top && p1.
Right
== p2.
Right
&& p1.Bottom == p2.Bottom;
222
^ WindowsFormsUtils.RotateLeft(
Right
, 16)
228
return "{Left=" + Left.ToString(CultureInfo.CurrentCulture) + ",Top=" + Top.ToString(CultureInfo.CurrentCulture) + ",Right=" +
Right
.ToString(CultureInfo.CurrentCulture) + ",Bottom=" + Bottom.ToString(CultureInfo.CurrentCulture) + "}";
266
Debug.Assert(All == Left && Left == Top && Top ==
Right
&&
Right
== Bottom, "_all is true, but All/Left/Top/Right/Bottom inconsistent.");
362
args[nArg++] = intConverter.ConvertToString(context, culture, padding.
Right
);
378
new object[] {padding.Left, padding.Top, padding.
Right
, padding.Bottom});
winforms\Managed\System\WinForms\ScrollableControl.cs (4)
455
scrollMargin.Width += Padding.
Right
;
562
ctlRight += current.Margin.
Right
;
1551
|| owner.Padding.
Right
!= -1
1647
return owner.Padding.
Right
;
winforms\Managed\System\WinForms\ToolStrip.cs (1)
4300
gripRectangle.X -= Grip.Margin.
Right
;
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (5)
122
int textPadding = (rightToLeft == RightToLeft.Yes) ? scaledTextPadding.
Right
: scaledTextPadding.Left;
420
nextPoint.X = checkRectangle.Right + scaledCheckPadding.
Right
+ scaledImagePadding.Left;
477
nextPoint.X = textRectangle.Right+ scaledTextPadding.
Right
+ scaledArrowPadding.Left;
482
this.maxItemSize.Width = (arrowRectangle.Right + scaledArrowPadding.
Right
) - imageMarginBounds.Left;
489
trimPadding += scaledTextPadding.
Right
;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (1)
1482
dragBounds.Width += (nextRowBounds.Width >> 2) + Row.Margin.
Right
+ ToolStripPanel.RowsInternal[index + 1].Margin.Left;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (1)
1290
bounds.Width = dropDownMenu.Width - bounds.X - dropDownMenu.Padding.
Right
;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (2)
329
x = lastRight - (itemMargin.
Right
+ itemSize.Width);
344
lastLeft = x + itemSize.Width + itemMargin.
Right
;
System.Workflow.ComponentModel (1)
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (1)
626
Width = this.themePanel.Right + this.themePanel.Left + Margin.Left + Margin.
Right
;
System.WorkflowServices (1)
System\Workflow\Activities\Design\GradientPanel.cs (1)
86
frameRect.Width += Margin.Left + Margin.
Right
;