15 writes to right
System.Private.Windows.Core (2)
Windows.Win32.RECT.g.cs (1)
54
this.
right
= right;
Windows\Win32\Foundation\RECT.cs (1)
12
right
= size.Width;
System.Windows.Forms (13)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
2009
rect.
right
= rect.left + _control.Width;
2014
rect.
right
= rect.left + width;
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
68
groupRect.
right
= Math.Min(listViewBounds.Right, groupRect.right);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
43
clientRect.
right
+= offsetX;
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (4)
130
rc2.
right
= rc.right;
164
rc2.
right
= rc.right;
167
rc2.
right
= rc.left + 1;
173
rc2.
right
= rc.right;
System\Windows\Forms\Printing\PageSetupDialog.cs (3)
307
dialogSettings.rtMinMargin.
right
= margins.Right;
316
dialogSettings.rtMargin.
right
= margins.Right;
324
dialogSettings.rtMargin.
right
= Math.Max(dialogSettings.rtMargin.right, dialogSettings.rtMinMargin.right);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
1071
rc.
right
+= sz.Width;
System\Windows\Forms\ToolTip\ToolTip.cs (1)
1329
right
= (rect.right > screen.WorkingArea.Right) ? screen.WorkingArea.Right : rect.right,
34 references to right
System.Private.Windows.Core (2)
Windows.Win32.RECT.g.cs (2)
62
internal readonly int Width => unchecked(this.
right
- this.left);
66
internal readonly bool IsEmpty => this.left == 0 && this.top == 0 && this.
right
== 0 && this.bottom == 0;
System.Windows.Forms (31)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (1)
289
clientLocation.X = Math.Min(clientLocation.X, clientRectangle.
right
);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
460
Point p2 = new(rc.
right
- rc.left, rc.bottom - rc.top);
2041
width = rect.
right
- rect.left;
System\Windows\Forms\Control.cs (2)
1590
if ((r.left <= p.X && p.X < r.
right
&& r.top <= p.Y && p.Y < r.bottom) || PInvoke.GetCapture() == HWND)
10864
clientWidth = rect.
right
;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (1)
362
clientLocation.X = Math.Min(clientLocation.X, clientRectangle.
right
);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
302
if ((r.left <= p.X && p.X < r.
right
&& r.top <= p.Y && p.Y < r.bottom) || PInvoke.GetCapture() == HWND)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1513
if (r.left <= x && x < r.
right
&& r.top <= y && y < r.bottom)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
68
groupRect.right = Math.Min(listViewBounds.Right, groupRect.
right
);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
803
return new Size(rect.
right
, rect.bottom);
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
127
clientLocation.X = Math.Min(clientLocation.X, clientRectangle.
right
);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
587
int deltaRightEdge = Math.Abs(rootHwndClientArea.
right
- gripLocation.X);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
121
absoluteClientRectangle.
right
,
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
632
visible = (rc.bottom > 0 && rc.
right
> 0 && rc.top < size.Height && rc.left < size.Width);
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (1)
411
RECT posRect = new(0, 0, lprcPosRect->
right
- lprcPosRect->left, lprcPosRect->bottom - lprcPosRect->top);
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (4)
130
rc2.right = rc.
right
;
164
rc2.right = rc.
right
;
173
rc2.right = rc.
right
;
177
rc2.left = rc.
right
- 1;
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
99
int x = screen.X + (screen.Width - r.
right
+ r.left) / 2;
System\Windows\Forms\Form.cs (1)
3911
p.X = (ownerRect.left + ownerRect.
right
- s.Width) / 2;
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
691
return new Rectangle(topLeftPoint.X, topLeftPoint.Y, clientRectangle.
right
, clientRectangle.bottom);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
453
if ((r.left <= p.X && p.X < r.
right
&& r.top <= p.Y && p.Y < r.bottom) || PInvoke.GetCapture() == HWND)
System\Windows\Forms\MDI\MDIClient.cs (1)
290
bounds.Width - rect.
right
,
System\Windows\Forms\Printing\PageSetupDialog.cs (3)
253
Right = data.rtMargin.
right
,
324
dialogSettings.rtMargin.right = Math.Max(dialogSettings.rtMargin.
right
, dialogSettings.rtMinMargin.
right
);
System\Windows\Forms\ToolTip\ToolTip.cs (4)
1320
if (cursorLocation.X < rect.left || cursorLocation.X > rect.
right
||
1329
right = (rect.
right
> screen.WorkingArea.Right) ? screen.WorkingArea.Right : rect.
right
,
2012
if (cursorLocation.X >= r.left && cursorLocation.X <= r.
right
&&
System.Windows.Forms.Interop.Tests (1)
RichTextBoxTests.cs (1)
136
Assert.Equal(109, value.rc.
right
);