542 references to Right
System.Drawing (1)
misc\GDI\NativeMethods.cs (1)
181
this.right = r.
Right
;
System.Web.DataVisualization (27)
Common\General\ChartGraphics.cs (10)
2435
this.DrawLine(markPen, absPositionRounded.
Right
, absPositionRounded.Top, absPositionRounded.
Right
, absPositionRounded.Bottom);
2439
this.DrawLine(markPen, absPositionRounded.Left, absPositionRounded.Top, absPositionRounded.
Right
, absPositionRounded.Top);
2440
this.DrawLine(markPen, absPositionRounded.Left, absPositionRounded.Bottom, absPositionRounded.
Right
, absPositionRounded.Bottom);
2450
(axis.AxisPosition == AxisPosition.Left) ? absPositionRounded.Left : absPositionRounded.
Right
,
2473
(axis.AxisPosition == AxisPosition.Left) ? absPositionRounded.Left : absPositionRounded.
Right
,
2482
absPositionRounded.
Right
,
2484
absPositionRounded.
Right
,
2575
rightLine[0].X = absPositionRounded.
Right
;
2577
rightLine[1].X = absPositionRounded.
Right
;
Common\General\Legend.cs (14)
747
if(cellPosition.
Right
< overlappedCellPosition.
Right
)
749
cellPosition.Width += overlappedCellPosition.
Right
- cellPosition.
Right
;
2465
right = legendItem.Cells[index].cellPosition.
Right
;
4082
prevRightLocation = rect.
Right
;
4126
columnWidth += legendPosition.
Right
- fillRect.
Right
+ 1;
4127
fillRect.Width += legendPosition.
Right
- fillRect.
Right
+ 1;
4159
if(fillRect.
Right
> legendPosition.
Right
)
4161
fillRect.Width -= (legendPosition.
Right
- fillRect.
Right
);
Common\General\LegendColumns.cs (3)
2159
imagePosition.X = this.cellPosition.
Right
- imagePosition.Width;
2264
seriesMarkerPosition.X = this.cellPosition.
Right
- seriesMarkerPosition.Width;
2372
point2.X = seriesMarkerPosition.
Right
;
System.Windows.Forms (331)
misc\GDI\NativeMethods.cs (1)
181
this.right = r.
Right
;
misc\GDI\WindowsGraphics2.cs (1)
127
DrawEllipse(pen, brush, bounds.Left, bounds.Top, bounds.
Right
, bounds.Bottom);
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (4)
446
Point p1 = new Point(r.
Right
- 1, r.Top ); // upper inner right.
449
Point p4 = new Point(r.
Right
- 1, r.Bottom - 1); // inner bottom right.
1380
int textRight = Math.Min(layout.textBounds.
Right
, layout.field.
Right
);
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (8)
101
g.DrawLine(windowFrame, r.Left + 1, r.Top + 1, r.
Right
- 2, r.Top + 1);
105
g.DrawLine(windowFrame, r.Left, r.Bottom - 1, r.
Right
, r.Bottom - 1);
106
g.DrawLine(windowFrame, r.
Right
- 1, r.Top, r.
Right
- 1, r.Bottom);
109
g.DrawLine(highlight, r.Left, r.Top, r.
Right
, r.Top);
113
g.DrawLine(buttonShadow, r.Left + 1, r.Bottom - 2, r.
Right
- 2, r.Bottom - 2);
114
g.DrawLine(buttonShadow, r.
Right
- 2, r.Top + 1, r.
Right
- 2, r.Bottom - 2);
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (1)
98
NativeMethods.RECT r = new NativeMethods.RECT(bounds.X, bounds.Y, bounds.
Right
, bounds.Bottom);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (7)
180
wg.DrawLine(high, r.
Right
-1 , r.Top, r.
Right
-1, r.Bottom);
181
wg.DrawLine(high, r.Left, r.Bottom-1, r.
Right
, r.Bottom-1);
184
wg.DrawLine(shadow, r.Left, r.Top, r.
Right
- 1, r.Top);
186
wg.DrawLine(face, r.
Right
- 2, r.Top + 1, r.
Right
- 2, r.Bottom - 1);
187
wg.DrawLine(face, r.Left + 1, r.Bottom - 2, r.
Right
- 1, r.Bottom - 2);
winforms\Managed\System\WinForms\ComboBox.cs (10)
5937
dropDownRect = new Rectangle(innerBorder.
Right
+ 1, innerBorder.Y, dropDownButtonWidth, innerBorder.Height+1);
5952
innerBorder.X = clientRect.Width - innerBorder.
Right
;
5953
innerInnerBorder.X = clientRect.Width - innerInnerBorder.
Right
;
5954
dropDownRect.X = clientRect.Width - dropDownRect.
Right
;
5955
whiteFillRect.X = clientRect.Width - whiteFillRect.
Right
+ 1; // since we're filling, we need to move over to the next px.
5999
g.DrawRectangle(outerBorderPen, new Rectangle(dropDownRect.X, outerBorder.Y, outerBorder.
Right
- dropDownRect.X, outerBorder.Height));
6009
g.DrawRectangle(outerBorderPen, new Rectangle(dropDownRect.X, outerBorder.Y, outerBorder.
Right
- dropDownRect.X, outerBorder.Height));
6043
g.DrawRectangle(innerPen, new Rectangle(dropDownRect.X, outerBorder.Y, outerBorder.
Right
- dropDownRect.X, outerBorder.Height));
6106
Rectangle rightOwnerDrawArea = new Rectangle(innerBorder.
Right
,0,comboBox.Width - innerBorder.
Right
,comboBox.Height);
winforms\Managed\System\WinForms\Control.cs (2)
9748
clientRectangle.
Right
, clientRectangle.Bottom);
9750
clientRectangle.
Right
, clientRectangle.Top);
winforms\Managed\System\WinForms\ControlPaint.cs (11)
1197
graphics.DrawLine(pen, bounds.X + 1, bounds.Y, bounds.
Right
-2, bounds.Y);
1198
graphics.DrawLine(pen, bounds.X + 1, bounds.Bottom - 1, bounds.
Right
-2, bounds.Bottom - 1);
1200
graphics.DrawLine(pen, bounds.
Right
- 1, bounds.Y + 1, bounds.
Right
- 1, bounds.Bottom -2);
1209
graphics.DrawLine(pen, bounds.X, midy, bounds.
Right
- 2, midy);
1220
graphics.DrawLine(pen, bounds.
Right
- 3, midy - 1, bounds.
Right
- 3, midy + 1);
1221
graphics.DrawLine(pen, bounds.
Right
- 4, midy - 2, bounds.
Right
- 4, midy + 2);
1801
SafeNativeMethods.Rectangle(new HandleRef(null, dc), rectangle.X, rectangle.Y, rectangle.
Right
, rectangle.Bottom);
2414
int right = bound.
Right
;
winforms\Managed\System\WinForms\DataGrid.cs (16)
4712
r.X = Math.Min(inside.
Right
- 3, r.X);
4932
int x = rightToLeft ? Math.Max(e.X, layout.Data.X) : Math.Min(e.X, layout.Data.
Right
+ 1);
4993
rightArea.Width -= rightToLeft ? rightArea.
Right
- left : left - rightArea.X;
5413
rowHeaders.X = insideLeft.
Right
- newRowHeaderWidth;
5432
topLeft.X = colHeaders.
Right
- newRowHeaderWidth;
6196
Debug.Assert(x >= inside.X && x < inside.
Right
, "x must be inside the horizontal bounds of layout.Data");
6808
layout.ResizeBoxRect = new Rectangle(alignToRight ? data.X : data.
Right
,
6844
vertScrollBar.Bounds = new Rectangle(alignToRight ? layout.Data.X : layout.Data.
Right
,
7129
boundingRect.X = boundingRect.
Right
- columnHeaderWidth;
7176
textBounds.X = boundingRect.
Right
- cx - textBounds.Width;
7244
Rectangle triBounds = new Rectangle(alignRight ? textBounds.X - textBounds.Height : textBounds.
Right
,
7304
g.FillRectangle(br, bounds.
Right
- 2, bounds.Y, 2, bounds.Height + 2);
7437
headerBounds.X = rowBounds.
Right
- headerBounds.Width;
9524
return rect.
Right
+ rect.X - R1.
Right
;
9537
return rect.
Right
+ rect.X - x;
winforms\Managed\System\WinForms\DataGridCaption.cs (4)
434
return new Rectangle( bounds.
Right
- xOffset * 4 - downButtonWidth - backButtonSize.Width,
456
return new Rectangle( bounds.
Right
- xOffset * 2 - downButtonWidth,
488
textRect.X = bounds.
Right
- textRect.Width;
579
border.X = textBounds.
Right
- textPadding;
winforms\Managed\System\WinForms\DataGridParentRows.cs (10)
149
ret.X = layout.leftArrow.IsEmpty ? layout.data.X : layout.leftArrow.
Right
;
568
border.X = bounds.
Right
- borderWidth;
665
layout.data = new Rectangle(layout.leftArrow.
Right
, bounds.Y, bounds.Width - 30, bounds.Height);
666
layout.rightArrow = new Rectangle(layout.data.
Right
, bounds.Y, 15, bounds.Height);
956
alignToRight ? paintBounds.X : paintBounds.
Right
,
958
alignToRight ? paintBounds.X : paintBounds.
Right
,
1018
Debug.Assert(containedRect.X >= surroundingRect.X && containedRect.
Right
<= surroundingRect.
Right
, "containedRect is not contained in surroundingRect");
1020
return surroundingRect.
Right
- containedRect.
Right
+ surroundingRect.X;
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (8)
293
Rectangle outline = GetOutlineRect(insideRowHeaders.
Right
- expandoBoxWidth, 0);
621
if (!alignToRight) Debug.Assert(rowHeaderBounds.
Right
== expandoBoxX, "what's up doc?");
644
relRect.X = alignToRight ? bounds.
Right
- relRect.Width : bounds.X;
653
alignToRight ? bounds.
Right
- dataWidth : bounds.X,
696
alignToRight ? bounds.
Right
- bWidth - paintedWidth : bounds.X + paintedWidth - bWidth,
766
outline.
Right
- indent - 1, outline.Y + outline.Width/2); // -1 on the y coordinate
780
points[2] = new Point(alignToRight ? bounds.X : bounds.
Right
,
816
return rect.
Right
+ rect.X - width - x;
winforms\Managed\System\WinForms\DataGridRow.cs (5)
444
Rectangle bottomBorder = new Rectangle(alignToRight ? bounds.
Right
- dataWidth : bounds.X,
454
alignToRight ? bounds.X: bottomBorder.
Right
,
499
cellBounds.X = bounds.
Right
- cx - cellBounds.Width;
517
alignToRight ? cellBounds.X - bWidth : cellBounds.
Right
,
561
Rectangle bmpRect = new Rectangle(alignToRight ? visualBounds.
Right
- xOffset - bmpSize.Width : visualBounds.X + xOffset,
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (2)
450
rectThemeMargins.Width = DATAGRIDVIEWBUTTONCELL_themeMargin - rectContent.
Right
;
731
valBounds.Width -= borderWidths.
Right
;
winforms\Managed\System\WinForms\DataGridViewCell.cs (40)
1254
cellValueBounds.
Right
- DATAGRIDVIEWCELL_iconMarginWidth - iconsWidth,
3593
this.DataGridView.RightToLeftInternal ? bounds.X : bounds.
Right
- dividerThickness,
3709
graphics.DrawLine(penGridColor, bounds.
Right
- 1, bounds.Y, bounds.
Right
- 1, bounds.Bottom - 1);
3713
graphics.DrawLine(penControlLightLight, bounds.
Right
- 1, bounds.Y, bounds.
Right
- 1, bounds.Bottom - 1);
3717
graphics.DrawLine(penControlDark, bounds.
Right
- 1, bounds.Y, bounds.
Right
- 1, bounds.Bottom - 1);
3732
graphics.DrawLine(penBackColor, bounds.
Right
- 1, bounds.Y, bounds.
Right
- 1, bounds.Bottom - 1);
3733
graphics.DrawLine(penControlDark, bounds.
Right
- 1, y1, bounds.
Right
- 1, y2);
3748
graphics.DrawLine(penControlDark, bounds.
Right
- 2, bounds.Y, bounds.
Right
- 2, bounds.Bottom - 1);
3749
graphics.DrawLine(penControlLightLight, bounds.
Right
- 1, y1, bounds.
Right
- 1, y2);
3765
graphics.DrawLine(penControlLightLight, bounds.
Right
- 2, bounds.Y, bounds.
Right
- 2, bounds.Bottom - 1);
3766
graphics.DrawLine(penControlDark, bounds.
Right
- 1, y1, bounds.
Right
- 1, y2);
3774
graphics.DrawLine(penGridColor, bounds.X, bounds.Y, bounds.
Right
- 1, bounds.Y);
3779
x2 = bounds.
Right
- 1;
3795
x2 = bounds.
Right
- 1;
3811
x2 = bounds.
Right
- 1;
3841
x2 = bounds.
Right
- 2;
3847
graphics.DrawLine(penControlDark, bounds.X, bounds.Y, bounds.
Right
- 1, bounds.Y);
3858
x2 = bounds.
Right
- 2;
3864
graphics.DrawLine(penControlLightLight, bounds.X, bounds.Y, bounds.
Right
- 1, bounds.Y);
3872
graphics.DrawLine(penGridColor, bounds.X, bounds.Bottom - 1, bounds.
Right
- 1, bounds.Bottom - 1);
3876
x2 = bounds.
Right
- 1;
3886
x2 = bounds.
Right
- 1;
3897
x2 = bounds.
Right
- 1;
4358
rectPadding.X = bounds.
Right
- cellStyle.Padding.Left;
4367
rectPadding.X = bounds.
Right
- cellStyle.Padding.Right;
4565
if (cellClip.
Right
<= cellBounds.
Right
- borderAndPaddingWidths.Width)
4567
wEditingPanel -= cellBounds.
Right
- cellClip.
Right
;
5115
columnRect.X = columnRect.
Right
;
5144
columnRect.X = columnRect.
Right
;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (3)
1175
valBounds.Width -= borderWidths.
Right
;
1305
checkBoxX = valBounds.
Right
- checkBoxSize.Width;
1393
g.DrawLine(pen, checkBounds.Left, checkBounds.Top, checkBounds.
Right
-1, checkBounds.Top);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (3)
795
valBounds.Width -= borderWidths.
Right
;
972
sortGlyphLocation = new Point(valBounds.
Right
+
1255
cornerClip = new Rectangle(bounds.
Right
-2, bounds.Bottom-2, 2, 2);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (4)
2148
valBounds.Width -= borderWidths.
Right
;
2247
dropRect = new Rectangle(this.DataGridView.RightToLeftInternal ? valBounds.Left : valBounds.
Right
- dropWidth,
2254
dropRect = new Rectangle(this.DataGridView.RightToLeftInternal ? valBounds.Left + 1 : valBounds.
Right
- dropWidth - 1,
2262
dropRect = new Rectangle(this.DataGridView.RightToLeftInternal ? valBounds.Left + 2 : valBounds.
Right
- dropWidth - 2,
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (2)
489
rectThemeMargins.Width = DATAGRIDVIEWHEADERCELL_themeMargin - rectContent.
Right
;
652
valBounds.Width -= borderWidths.
Right
;
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (7)
671
imgBounds.X = bounds.
Right
- imgBounds.Width;
677
imgBounds.X = bounds.
Right
- imgBounds.Width;
683
imgBounds.X = bounds.
Right
- imgBounds.Width;
695
imgBounds.X = bounds.
Right
- imgBounds.Width;
701
imgBounds.X = bounds.
Right
- imgBounds.Width;
707
imgBounds.X = bounds.
Right
- imgBounds.Width;
820
valBounds.Width -= borderWidths.
Right
;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
1013
valBounds.Width -= borderWidths.
Right
;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (56)
2579
clip.Width = this.layout.Data.
Right
- leftEdge - 1;
2580
int overflowWidth = clip.
Right
+ this.mouseBarOffset - leftEdge - DataGridViewBand.maxBandThickness;
3027
r.X = Math.Min(r.X, inside.
Right
- r.Width);
3032
r.X = Math.Min(inside.
Right
- r.Width, r.X);
3048
r.X = Math.Min(inside.
Right
- 3, r.X);
5728
this.layout.ColumnHeaders.
Right
- DATAGRIDVIEW_insertionBarWidth);
6155
newX = Math.Min(x + this.mouseBarOffset, this.layout.Data.
Right
- 1);
6325
delta = this.layout.RowHeaders.
Right
- this.RowHeadersWidth - x - 1;
6329
x = Math.Min(e.X + this.mouseBarOffset, this.layout.Data.
Right
- 1);
7166
width = columnRect.
Right
- rowRect.
Right
;
8268
cx = data.
Right
;
8279
(!this.RightToLeftInternal && cx > data.
Right
))
8310
(!this.RightToLeftInternal && cx > data.
Right
))
8355
((!this.RightToLeftInternal && cx + viewedColumnWidth > data.
Right
) ||
8364
displayWidth = data.
Right
- cx;
8397
Debug.Assert(this.RightToLeftInternal || (x >= data.X - 1 && x < data.
Right
), "x must be inside the horizontal bounds of this.layout.Data");
8398
Debug.Assert(!this.RightToLeftInternal || (x >= data.X && x <= data.
Right
), "x must be inside the horizontal bounds of this.layout.Data");
8404
else if (this.RightToLeftInternal && x == data.
Right
)
8412
cx = data.
Right
-1;
8422
((!this.RightToLeftInternal && cx < data.
Right
) || (this.RightToLeftInternal && cx >= data.X)))
8461
((!this.RightToLeftInternal && cx < data.
Right
) || (this.RightToLeftInternal && cx >= data.X)))
8531
x = this.layout.Data.
Right
-1;
8671
hti = HitTest(this.RightToLeftInternal ? rectScrollingArea.
Right
-1 : rectScrollingArea.Left, mouseY);
8698
hti = HitTest(this.RightToLeftInternal ? rectScrollingArea.
Right
: rectScrollingArea.Left, mouseY);
8717
mouseX = rectScrollingArea.
Right
-1;
8726
hti = HitTest(this.RightToLeftInternal ? rectScrollingArea.
Right
: rectScrollingArea.Left, mouseY);
8741
mouseX = rectScrollingArea.
Right
-1;
8765
if (mouseX >= rectScrollingArea.Left && mouseX <= rectScrollingArea.
Right
)
8802
(this.RightToLeftInternal && mouseX > rectScrollingArea.
Right
))
8815
xOffset = rectScrollingArea.
Right
- mouseX;
8831
Debug.Assert((!this.RightToLeftInternal && mouseX > rectScrollingArea.
Right
) || (this.RightToLeftInternal && mouseX < rectScrollingArea.Left));
8866
xOffset = mouseX - rectScrollingArea.
Right
;
8943
(this.RightToLeftInternal && mouseX > rectScrollingArea.
Right
))
8962
xOffset = rectScrollingArea.
Right
- mouseX;
8978
else if (this.RightToLeftInternal && mouseX > this.layout.Data.
Right
)
8980
mouseX = this.layout.Data.
Right
-1;
8985
else if ((!this.RightToLeftInternal && mouseX > rectScrollingArea.
Right
) ||
9017
xOffset = mouseX - rectScrollingArea.
Right
;
9029
mouseX = rectScrollingArea.
Right
-1;
9043
mouseX = rectScrollingArea.
Right
-1;
9404
hti.colStart = this.layout.TopLeftHeader.
Right
-1;
9411
if ((!this.RightToLeftInternal && this.layout.TopLeftHeader.
Right
- x < DATAGRIDVIEW_columnSizingHotZone) ||
9424
hti.mouseBarOffset = this.layout.TopLeftHeader.
Right
- x - 1;
9557
hti.colStart = this.layout.RowHeaders.
Right
-1;
9600
else if ((!this.RightToLeftInternal && this.layout.RowHeaders.
Right
- x < DATAGRIDVIEW_columnSizingHotZone) ||
9613
hti.mouseBarOffset = this.layout.RowHeaders.
Right
- x - 1;
10479
rightToLeftInternal ? this.layout.Data.X - this.vertScrollBar.Width : this.layout.Data.
Right
,
10537
rightToLeftInternal ? this.layout.Data.X - this.vertScrollBar.Width : this.layout.Data.
Right
,
14965
rightArea.Width -= rightArea.
Right
- leftEdge;
19362
if (pt.X > rect.
Right
&& step > 0)
19364
Invalidate(new Rectangle(new Point(ClientSize.Width - (pt.X - rect.
Right
) - step, ColumnHeadersHeight),
19915
cellBounds.X = bandBounds.
Right
- cx - cellBounds.Width;
19992
cellBounds.X = scrollingBounds.
Right
- cx - cellBounds.Width;
26197
while (xColumnRightEdge > this.layout.Data.
Right
&& this.Columns.DisplayInOrder(firstDisplayedScrollingColumn, columnIndex))
26205
if (xColumnRightEdge > this.layout.Data.
Right
)
winforms\Managed\System\WinForms\DataGridViewRow.cs (3)
1627
cellBounds.X = rowBounds.
Right
- cx - cellBounds.Width;
1714
cellBounds.X = dataBounds.
Right
- cx - cellBounds.Width;
1802
cellBounds.X = rowBounds.
Right
- cellBounds.Width;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (2)
787
valBounds.Width -= borderWidths.
Right
;
1133
bounds.
Right
- DATAGRIDVIEWROWHEADERCELL_iconMarginWidth - iconsWidth :
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
698
valBounds.Width -= borderWidths.
Right
;
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (4)
277
valBounds.Width -= borderWidths.
Right
;
411
graphics.DrawLine(penControlDark, bounds.X, bounds.Y, bounds.
Right
- 1, bounds.Y);
418
graphics.DrawLine(penControlLightLight, bounds.X, bounds.Y, bounds.
Right
- 1, bounds.Y);
425
graphics.DrawLine(penControlDark, bounds.X + 1, bounds.Y + 1, bounds.
Right
- 1, bounds.Y + 1);
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (3)
399
ptTextLocation.X = cellBounds.
Right
- sizeText.Width;
414
ptTextLocation.X = cellBounds.
Right
- sizeText.Width;
429
ptTextLocation.X = cellBounds.
Right
- sizeText.Width;
winforms\Managed\System\WinForms\DrawListViewColumnHeaderEventArgs.cs (4)
178
graphics.DrawLine(SystemPens.ControlLightLight, r.X, r.Y, r.
Right
, r.Y);
183
graphics.DrawLine(SystemPens.ControlDark, r.X + 1, r.Bottom, r.
Right
, r.Bottom);
184
graphics.DrawLine(SystemPens.ControlDark, r.
Right
, r.Y + 1, r.
Right
, r.Bottom);
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (6)
176
textBounds.X = bounds.
Right
- textBounds.Width - boxHeaderWidth + 1; // +1 to account for the margin built in the MeasureText result
198
clipLeft.X = boxBounds.
Right
- boxHeaderWidth;
204
clipMiddle.X = clipLeft.
Right
;
205
clipRight.X = clipMiddle.
Right
;
206
clipRight.Width = boxBounds.
Right
- clipRight.X;
269
textBounds.X = bounds.
Right
- textBounds.Width - textOffset;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (6)
201
right = right > 0 ? right : element.Bounds.
Right
+ Math.Abs(right);
311
Rectangle newElementBounds = new Rectangle(remainingBounds.
Right
- elementSize.Width, remainingBounds.Y, elementSize.Width, elementSize.Height);
565
anchorInfo.Right = element.Bounds.
Right
;
836
prefSize.Width = Math.Max(prefSize.Width, elementSpace.
Right
);
851
prefSize.Width = Math.Max(prefSize.Width, elementSpace.
Right
+ anchorDest.Width);
854
prefSize.Width = Math.Max(prefSize.Width, anchorDest.
Right
);
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (4)
241
if(location.X > rowBounds.
Right
) {
345
value.X = DisplayRect.
Right
- value.
Right
;
420
newBounds.X = DisplayRect.
Right
- bounds.X - bounds.Width + ElementProxy.Margin.Left - ElementProxy.Margin.Right;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (5)
472
Debug.Assert(region1.
Right
== region2.Left, "Adjacency error.");
477
Debug.Assert(region2.
Right
== region1.Left, "Adjacency error.");
514
int right = (specified & AnchorStyles.Right) != 0 ? substitutionBounds.
Right
: originalBounds.
Right
;
523
bounds.X = withinBounds.Width - bounds.
Right
;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (2)
1242
elementBounds.X = cellBounds.X + (cellBounds.
Right
- elementBounds.
Right
);
winforms\Managed\System\WinForms\LinkLabel.cs (1)
508
xLoc = clientRect.
Right
- textRect.Width;
winforms\Managed\System\WinForms\ListView.cs (2)
4726
rectInvalid.Width += this.ClientRectangle.
Right
- rectInvalid.
Right
;
winforms\Managed\System\WinForms\ListViewItem.cs (1)
1039
return this.ListView.FindNearestItem(searchDirection, r.
Right
, r.Top);
winforms\Managed\System\WinForms\NativeMethods.cs (2)
3093
this.right = r.
Right
;
4038
this.right = r.
Right
;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
623
uiItemRects[i] = new Rectangle(rect.
Right
- ((scaledImageSizeX + 1) * (i + 1)), (rect.Height - scaledImageSizeY) / 2, scaledImageSizeX, scaledImageSizeY);
winforms\Managed\System\WinForms\StatusStrip.cs (1)
579
gripLocation = new NativeMethods.POINT(SizeGripBounds.
Right
, SizeGripBounds.Bottom);
winforms\Managed\System\WinForms\TableLayoutPanel.cs (3)
423
startx = displayRect.
Right
- (cellBorderWidth / 2);
468
g.DrawLine(SystemPens.ControlDark, tableBounds.
Right
, tableBounds.Y, tableBounds.
Right
, tableBounds.Bottom);
winforms\Managed\System\WinForms\ToolBar.cs (1)
1748
if (leftTop.x + tooltipWidth > SystemInformation.WorkingArea.
Right
) {
winforms\Managed\System\WinForms\ToolStrip.cs (9)
3964
new Point[] { new Point(lastInsertionMarkRect.X, horizontalBeamStart), new Point(lastInsertionMarkRect.
Right
-1, horizontalBeamStart), // first vertical line
3965
new Point(lastInsertionMarkRect.X, horizontalBeamStart+1), new Point(lastInsertionMarkRect.
Right
-1, horizontalBeamStart+1), //second vertical line
3974
new Point[] { new Point(lastInsertionMarkRect.
Right
-1, start), new Point(lastInsertionMarkRect.
Right
-1, start + widthOfBeam-1), //right line
3975
new Point(lastInsertionMarkRect.
Right
-2, start+1), new Point(lastInsertionMarkRect.
Right
-2, start + widthOfBeam-2), //second right line
4296
gripRectangle.X = ClientRectangle.
Right
- gripRectangle.Width - Grip.Margin.Horizontal;
5488
insertionRect = new Rectangle(item.Bounds.
Right
, owner.Margin.Top, ToolStrip.insertionBeamWidth, owner.Height- (owner.Margin.Vertical)-1);
5554
else if ((orig.
Right
- widthUnit) <= check.X) {
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (1)
289
dropDownArrowRect = new Rectangle(options.client.
Right
,0, dropDownArrowSize.Width, ownerItem.Bounds.Height);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (9)
420
nextPoint.X = checkRectangle.
Right
+ scaledCheckPadding.Right + scaledImagePadding.Left;
472
nextPoint.X = imageMarginBounds.
Right
+ scaledTextPadding.Left;
477
nextPoint.X = textRectangle.
Right
+ scaledTextPadding.Right + scaledArrowPadding.Left;
482
this.maxItemSize.Width = (arrowRectangle.
Right
+ scaledArrowPadding.Right) - imageMarginBounds.Left;
491
checkRectangle.X = width - checkRectangle.
Right
;
492
imageRectangle.X = width - imageRectangle.
Right
;
493
textRectangle.X = width - textRectangle.
Right
;
494
arrowRectangle.X = width - arrowRectangle.
Right
;
495
imageMarginBounds.X = width - imageMarginBounds.
Right
;
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (1)
336
g.DrawLine(foreColorPen, bounds.Left, startY, bounds.
Right
- 1, startY);
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
932
location = new Point(dragRect.
Right
-1, 0);
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (2)
270
int spaceToFree = bounds.
Right
- displayRectangle.
Right
;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (5)
405
int spaceToFree = cell.CachedBounds.
Right
- RowManager.DisplayRectangle.
Right
;
1172
freedSpace += DisplayRectangle.
Right
- lastCell.Bounds.
Right
;
1365
lastCellMargin.Left = Math.Max(0,locationToDrag.X - nextCell.Bounds.
Right
);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (9)
381
g.DrawLine(p, bounds.Left, bounds.Height - 1, bounds.
Right
, bounds.Height - 1);
853
endGradient.X = bounds.
Right
- endGradient.Width;
1106
start.X = overflowBoundsFill.
Right
+1;
1107
end.X = overflowBoundsFill.
Right
;
1126
top1.X = overflowBoundsFill.
Right
+ 1;
1127
top2.X = overflowBoundsFill.
Right
;
1142
fillRect.X = overflowBoundsFill.
Right
;
1329
g.DrawLine(foreColorPen, bounds.Left, startY, bounds.
Right
- 1, startY);
1334
g.DrawLine(highlightColorPen, bounds.Left + 1, startY, bounds.
Right
- 1, startY);
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (3)
385
dropDownButtonBounds.Offset(splitButtonButtonBounds.
Right
+splitterWidth, 0);
386
splitterBounds = new Rectangle(splitButtonButtonBounds.
Right
, splitButtonButtonBounds.Top, splitterWidth, splitButtonButtonBounds.Height);
391
splitterBounds = new Rectangle(dropDownButtonBounds.
Right
, dropDownButtonBounds.Top, splitterWidth, dropDownButtonBounds.Height);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (4)
250
int lastRight = displayRectangle.
Right
;// - toolStrip.Padding.Right;
267
lastRight = clientRectangle.
Right
;
522
if ((itemBounds.
Right
> displayRectangle.
Right
)
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (6)
645
g.DrawLine(foreColorPen, bounds.Left, startY, bounds.
Right
, startY);
649
g.DrawLine(SystemPens.ButtonHighlight, bounds.Left, startY, bounds.
Right
, startY);
670
g.DrawLine(topPen, bounds.Left, bounds.Top, bounds.
Right
-1, bounds.Top);
672
g.DrawLine(rightPen, bounds.
Right
-1, bounds.Top, bounds.
Right
-1, bounds.Bottom-1);
673
g.DrawLine(bottomPen, bounds.Left, bounds.Bottom-1, bounds.
Right
-1, bounds.Bottom -1);
winforms\Managed\System\WinForms\ToolStripTextBox.cs (2)
876
g.FillRectangle(b, clientRect.
Right
, 0, this.Width - clientRect.
Right
, this.Height); // right border
winforms\Managed\System\WinForms\ToolTip.cs (10)
1574
visibleRect.right = (r.right > screen.WorkingArea.
Right
) ? screen.WorkingArea.
Right
:r.right;
1756
int pointX = (toolRectangle.Left + toolRectangle.
Right
) / 2;
1803
possibleLocations[RIGHT_LOCATION_INDEX] = new Rectangle(toolRectangle.
Right
, centeredY, width, height);
2164
if (moveToLocation.X + tipSize.Width > screen.WorkingArea.
Right
) {
2165
moveToLocation.X = screen.WorkingArea.
Right
- tipSize.Width;
2462
if (wp->x + wp->cx >screen.WorkingArea.
Right
) {
2463
wp->x = screen.WorkingArea.
Right
- wp->cx;
2471
if (wp->x + wp->cx >screen.WorkingArea.
Right
) {
2472
wp->x = screen.WorkingArea.
Right
- wp->cx;
winforms\Managed\System\WinForms\TreeView.cs (2)
2949
else if (tn != null && tn.Bounds.
Right
> this.Bounds.
Right
) {
winforms\Managed\System\WinForms\UpDownBase.cs (5)
813
Rectangle clipRight = new Rectangle(bounds.
Right
- border, bounds.Top, border, bounds.Height);
1117
upDownButtonsBounds = new Rectangle(/*x*/clientArea.
Right
- defaultButtonsWidth+borderFixup,
1130
upDownButtonsBounds.X = totalClientWidth - upDownButtonsBounds.
Right
;
1131
upDownEditBounds.X = totalClientWidth - upDownEditBounds.
Right
;
1736
e.Graphics.DrawLine(pen, clientRect.Left, clientRect.Bottom - 1, clientRect.
Right
- 1, clientRect.Bottom - 1);
winforms\Managed\System\WinForms\WinFormsUtils.cs (4)
110
if (bounds.
Right
> constrainingBounds.
Right
) {
112
bounds.X = constrainingBounds.
Right
- bounds.Width;
630
HandleRef hClippingRegion = new HandleRef(null, SafeNativeMethods.CreateRectRgn(viewportOrg.x + bounds.Left, viewportOrg.y + bounds.Top, viewportOrg.x + bounds.
Right
, viewportOrg.y + bounds.Bottom));
System.Windows.Forms.DataVisualization (27)
Common\General\ChartGraphics.cs (10)
2435
this.DrawLine(markPen, absPositionRounded.
Right
, absPositionRounded.Top, absPositionRounded.
Right
, absPositionRounded.Bottom);
2439
this.DrawLine(markPen, absPositionRounded.Left, absPositionRounded.Top, absPositionRounded.
Right
, absPositionRounded.Top);
2440
this.DrawLine(markPen, absPositionRounded.Left, absPositionRounded.Bottom, absPositionRounded.
Right
, absPositionRounded.Bottom);
2450
(axis.AxisPosition == AxisPosition.Left) ? absPositionRounded.Left : absPositionRounded.
Right
,
2473
(axis.AxisPosition == AxisPosition.Left) ? absPositionRounded.Left : absPositionRounded.
Right
,
2482
absPositionRounded.
Right
,
2484
absPositionRounded.
Right
,
2575
rightLine[0].X = absPositionRounded.
Right
;
2577
rightLine[1].X = absPositionRounded.
Right
;
Common\General\Legend.cs (14)
747
if(cellPosition.
Right
< overlappedCellPosition.
Right
)
749
cellPosition.Width += overlappedCellPosition.
Right
- cellPosition.
Right
;
2465
right = legendItem.Cells[index].cellPosition.
Right
;
4082
prevRightLocation = rect.
Right
;
4126
columnWidth += legendPosition.
Right
- fillRect.
Right
+ 1;
4127
fillRect.Width += legendPosition.
Right
- fillRect.
Right
+ 1;
4159
if(fillRect.
Right
> legendPosition.
Right
)
4161
fillRect.Width -= (legendPosition.
Right
- fillRect.
Right
);
Common\General\LegendColumns.cs (3)
2159
imagePosition.X = this.cellPosition.
Right
- imagePosition.Width;
2264
seriesMarkerPosition.X = this.cellPosition.
Right
- seriesMarkerPosition.Width;
2372
point2.X = seriesMarkerPosition.
Right
;
System.Workflow.Activities (19)
Designers\ConditionalDesigner.cs (1)
122
new Point(rectangle.
Right
- 1, rectangle.Top + rectangle.Height / 2),
Designers\StateDesigner.cs (1)
1504
newSize.Width = Math.Max(newSize.Width, bounds.
Right
);
Designers\StateDesigner.Layouts.cs (7)
524
Point point = new Point(layoutBounds.
Right
+ 4, midVert);
711
graphics.DrawLine(designerTheme.BorderPen, bounds.Left, bounds.Bottom, bounds.
Right
, bounds.Bottom);
809
layout.Bounds.
Right
,
1025
graphics.DrawLine(designerTheme.BorderPen, rectangle.Left, rectangle.Bottom, rectangle.
Right
, rectangle.Bottom);
1042
int minX = _imageLayout.Bounds.
Right
+ Padding;
1049
if ((xPos + maxStringWidth) > (this.Bounds.
Right
- margin.Width))
1050
maxStringWidth = (this.Bounds.
Right
- margin.Width) - xPos;
Designers\StateDesignerConnector.cs (2)
234
path.AddLine(new Point(bounds.Left + bounds.Width / 2, bounds.Top), new Point(bounds.
Right
, bounds.Top + bounds.Height / 2));
235
path.AddLine(new Point(bounds.
Right
, bounds.Top + bounds.Height / 2), new Point(bounds.Left + bounds.Width / 2, bounds.Bottom));
Designers\StateMachineDesignerPaint.cs (3)
68
if ((left + width) > bounds.
Right
)
69
width -= rectangle.
Right
- bounds.
Right
;
Designers\WhileDesigner.cs (4)
47
connectionPoint = new Point(imageRectangle.
Right
+ e.AmbientTheme.Margin.Width / 2, imageRectangle.Top + imageRectangle.Height / 2);
49
connectionPoint = new Point(textRectangle.
Right
+ e.AmbientTheme.Margin.Width / 2, textRectangle.Top + textRectangle.Height / 2);
56
points[1].X = bounds.
Right
- compositeDesignerTheme.ConnectorSize.Width / 3;
58
points[2].X = bounds.
Right
- compositeDesignerTheme.ConnectorSize.Width / 3;
Rules\Design\Dialogs\IntellisenseTextBox.cs (1)
442
if (listboxRectangle.
Right
> topLevelControlSize.Width)
System.Workflow.ComponentModel (133)
AuthoringOM\Design\ActivityDesigner.cs (2)
953
hitRectangle = new Rectangle(bounds.
Right
, bounds.Top, bounds.Width - bounds.Width, bounds.Height);
1186
connections.Add(new Point(bounds.
Right
, bounds.Top + bounds.Height / 2));
AuthoringOM\Design\ActivityPreviewDesigner.cs (2)
587
this.separatorLine[1].X = bounds.
Right
- e.AmbientTheme.Margin.Width;
991
Point configErrorLocation = new Point(rectangle.
Right
- configErrorSize.Width / 2, rectangle.Top - configErrorSize.Height / 2);
AuthoringOM\Design\Connector.cs (11)
523
path.AddLine(new Point(bounds.Left + bounds.Width / 2, bounds.Top), new Point(bounds.
Right
, bounds.Top + bounds.Height / 2));
524
path.AddLine(new Point(bounds.
Right
, bounds.Top + bounds.Height / 2), new Point(bounds.Left + bounds.Width / 2, bounds.Bottom));
1700
designerEdgeCover.Add(DesignerEdges.Top, new Point[] { new Point(bounds.Left, bounds.Top), new Point(bounds.
Right
, bounds.Top) });
1701
designerEdgeCover.Add(DesignerEdges.Right, new Point[] { new Point(bounds.
Right
, bounds.Top), new Point(bounds.
Right
, bounds.Bottom) });
1702
designerEdgeCover.Add(DesignerEdges.Bottom, new Point[] { new Point(bounds.Left, bounds.Bottom), new Point(bounds.
Right
, bounds.Bottom) });
1819
begin.X = Math.Min(Math.Max(begin.X, enclosingRectangle.Left + 1), enclosingRectangle.
Right
- 1);
2792
AddCover(new ConnectorSegment(new Point(rectangle.
Right
, rectangle.Top), new Point(rectangle.
Right
, rectangle.Bottom)));
2793
AddCover(new ConnectorSegment(new Point(rectangle.Left, rectangle.Top), new Point(rectangle.
Right
, rectangle.Top)));
2794
AddCover(new ConnectorSegment(new Point(rectangle.Left, rectangle.Bottom), new Point(rectangle.
Right
, rectangle.Bottom)));
AuthoringOM\Design\DesignerHelpers.cs (67)
215
rectangle.X = destination.
Right
- rectangle.Width;
306
graphics.DrawLine(lightPen, bounds.Left + 1, bounds.Top + 1, bounds.
Right
- 1, bounds.Top + 1);
307
graphics.DrawLine(darkPen, bounds.Left + 1, bounds.Bottom - 1, bounds.
Right
- 1, bounds.Bottom - 1);
308
graphics.DrawLine(darkPen, bounds.
Right
- 1, bounds.Bottom - 1, bounds.
Right
- 1, bounds.Top + 1);
309
graphics.DrawLine(darkdarkPen, bounds.Left, bounds.Bottom, bounds.
Right
, bounds.Bottom);
310
graphics.DrawLine(darkdarkPen, bounds.
Right
, bounds.Bottom, bounds.
Right
, bounds.Top);
335
for (int gridCoOrdX = gridStart.X; gridCoOrdX <= viewableRectangle.
Right
; gridCoOrdX += Math.Max(ambientTheme.GridSize.Width, 1))
341
if (((gridCoOrdX + ambientTheme.GridSize.Width / 2) >= viewableRectangle.Left && (gridCoOrdX + ambientTheme.GridSize.Width / 2) <= viewableRectangle.
Right
) &&
380
graphics.DrawLine(CompositeDesignerTheme.ExpandButtonForegoundPen, boundingRect.Left + 2, boundingRect.Top + boundingRect.Height / 2, boundingRect.
Right
- 2, boundingRect.Top + boundingRect.Height / 2);
583
graphics.DrawLine(Pens.Red, bounds.Left, bounds.Top, bounds.
Right
, bounds.Bottom);
584
graphics.DrawLine(Pens.Red, bounds.
Right
, bounds.Top, bounds.Left, bounds.Bottom);
760
roundedRectangle.AddLine(rectangle.Left + radius, rectangle.Top, rectangle.
Right
- radius, rectangle.Top);
761
roundedRectangle.AddArc(rectangle.
Right
- diameter, rectangle.Top, diameter, diameter, 270.0f, 90.0f);
762
roundedRectangle.AddLine(rectangle.
Right
, rectangle.Top + radius, rectangle.
Right
, rectangle.Bottom - radius);
763
roundedRectangle.AddArc(rectangle.
Right
- diameter, rectangle.Bottom - diameter, diameter, diameter, 0.0f, 90.0f);
764
roundedRectangle.AddLine(rectangle.
Right
- radius, rectangle.Bottom, rectangle.Left + radius, rectangle.Bottom);
830
pagePaths[0].AddLine(pageBounds.Left + pageFoldSize, pageBounds.Top, pageBounds.
Right
, pageBounds.Top);
831
pagePaths[0].AddLine(pageBounds.
Right
, pageBounds.Top, pageBounds.
Right
, pageBounds.Bottom);
832
pagePaths[0].AddLine(pageBounds.
Right
, pageBounds.Bottom, pageBounds.Left, pageBounds.Bottom);
845
pagePaths[0].AddLine(pageBounds.Left, pageBounds.Top, pageBounds.
Right
, pageBounds.Top);
846
pagePaths[0].AddLine(pageBounds.
Right
, pageBounds.Top, pageBounds.
Right
, pageBounds.Bottom);
847
pagePaths[0].AddLine(pageBounds.
Right
, pageBounds.Bottom, pageBounds.Left + pageFoldSize, pageBounds.Bottom);
863
pagePaths[0].AddLine(pageBounds.Left, pageBounds.Top, pageBounds.
Right
- pageFoldSize, pageBounds.Top);
864
pagePaths[0].AddLine(pageBounds.
Right
- pageFoldSize, pageBounds.Top, pageBounds.
Right
- pageFoldSize, pageBounds.Top + pageFoldSize);
865
pagePaths[0].AddLine(pageBounds.
Right
- pageFoldSize, pageBounds.Top + pageFoldSize, pageBounds.
Right
, pageBounds.Top + pageFoldSize);
866
pagePaths[0].AddLine(pageBounds.
Right
, pageBounds.Top + pageFoldSize, pageBounds.
Right
, pageBounds.Bottom);
867
pagePaths[0].AddLine(pageBounds.
Right
, pageBounds.Bottom, pageBounds.Left, pageBounds.Bottom);
872
pagePaths[1].AddLine(pageBounds.
Right
- pageFoldSize, pageBounds.Top, pageBounds.
Right
- pageFoldSize, pageBounds.Top + pageFoldSize);
873
pagePaths[1].AddLine(pageBounds.
Right
- pageFoldSize, pageBounds.Top + pageFoldSize, pageBounds.
Right
, pageBounds.Top + pageFoldSize);
874
pagePaths[1].AddLine(pageBounds.
Right
, pageBounds.Top + pageFoldSize, pageBounds.
Right
- pageFoldSize, pageBounds.Top);
880
pagePaths[0].AddLine(pageBounds.Left, pageBounds.Top, pageBounds.
Right
, pageBounds.Top);
881
pagePaths[0].AddLine(pageBounds.
Right
, pageBounds.Top, pageBounds.
Right
, pageBounds.Bottom - pageFoldSize);
882
pagePaths[0].AddLine(pageBounds.
Right
, pageBounds.Bottom - pageFoldSize, pageBounds.
Right
- pageFoldSize, pageBounds.Bottom - pageFoldSize);
883
pagePaths[0].AddLine(pageBounds.
Right
- pageFoldSize, pageBounds.Bottom - pageFoldSize, pageBounds.
Right
- pageFoldSize, pageBounds.Bottom);
884
pagePaths[0].AddLine(pageBounds.
Right
- pageFoldSize, pageBounds.Bottom, pageBounds.Left, pageBounds.Bottom);
889
pagePaths[1].AddLine(pageBounds.
Right
, pageBounds.Bottom - pageFoldSize, pageBounds.
Right
- pageFoldSize, pageBounds.Bottom - pageFoldSize);
890
pagePaths[1].AddLine(pageBounds.
Right
- pageFoldSize, pageBounds.Bottom - pageFoldSize, pageBounds.
Right
- pageFoldSize, pageBounds.Bottom);
891
pagePaths[1].AddLine(pageBounds.
Right
- pageFoldSize, pageBounds.Bottom, pageBounds.
Right
, pageBounds.Bottom - pageFoldSize);
1034
for (int gridCoOrd = gridStart.X; gridCoOrd <= viewableRectangle.
Right
; gridCoOrd += Math.Max(gridUnit.Width, 1))
1045
if (showMinorGrid && (gridCoOrd + gridUnit.Width / 2) >= viewableRectangle.Left && (gridCoOrd + gridUnit.Width / 2) <= viewableRectangle.
Right
)
1070
if (!NativeMethods.LineTo(this.hdc, viewableRectangle.
Right
- 1, gridCoOrd))
1083
if (!NativeMethods.LineTo(this.hdc, viewableRectangle.
Right
- 1, gridCoOrd + gridUnit.Height / 2))
1847
distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new Point(rect.Left, rect.Top), new Point(rect.
Right
, rect.Top) }));
1853
distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new Point(rect.
Right
, rect.Top), new Point(rect.
Right
, rect.Bottom) }));
1859
distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new Point(rect.Left, rect.Bottom), new Point(rect.
Right
, rect.Bottom) }));
1921
distances.Add(DistanceBetweenPoints(point, new Point(rect.
Right
, rect.Top)));
1922
distances.Add(DistanceBetweenPoints(point, new Point(rect.
Right
, rect.Top + rect.Height / 2)));
1923
distances.Add(DistanceBetweenPoints(point, new Point(rect.
Right
, rect.Bottom)));
1924
distances.Add(DistanceBetweenPoints(point, new Point(rect.
Right
+ rect.Width / 2, rect.Bottom)));
AuthoringOM\Design\DesignerWidgets.cs (18)
336
this.itemStrip.Location = new Point(leftScrollButtonBounds.
Right
, leftScrollButtonBounds.Top);
488
if (buttonRectangle.X >= this.bounds.
Right
)
489
buttonRectangle.X = this.bounds.
Right
- buttonRectangle.Size.Width;
1228
using (Brush gradientBrush = new LinearGradientBrush(new Point(this.leftGradientRectangle.Left, this.leftGradientRectangle.Top), new Point(this.leftGradientRectangle.
Right
, this.leftGradientRectangle.Top), SystemColors.Window, SystemColors.ScrollBar))
1314
else if (this.workingRectangle.
Right
< bounds.
Right
)
1315
fittingOffset.Width -= bounds.
Right
- this.workingRectangle.
Right
;
2373
toolInfo.rect.right = rectangle.
Right
;
2543
rectangles[j] = new Rectangle(rectangles[j].Left, rectangles[j].Top, stripRectangle.
Right
- rectangles[j].Left, rectangles[j].Height);
2831
stripRectangle.X = scrollLeftButton.
Right
+ margin.Width;
2833
stripRectangle.Width = (scrollRightButton.Left - margin.Width) - (scrollLeftButton.
Right
+ margin.Width);
2849
int startLocation = (scrollButton == ScrollButton.Left) ? this.bounds.X : this.bounds.
Right
- scrollButtonSize.Width;
3431
graphics.DrawLine(SystemPens.ControlDarkDark, canvasRect.Left, canvasRect.Top, canvasRect.
Right
, canvasRect.Top);
3432
graphics.DrawLine(SystemPens.ControlLight, canvasRect.
Right
, canvasRect.Top, canvasRect.
Right
, canvasRect.Bottom);
3433
graphics.DrawLine(SystemPens.ControlLight, canvasRect.Left, canvasRect.Bottom, canvasRect.
Right
, canvasRect.Bottom);
3436
graphics.DrawLine(SystemPens.ControlLight, canvasRect.Left, canvasRect.Top, canvasRect.
Right
, canvasRect.Top);
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (4)
510
paintArgs.Graphics.DrawLine(SystemPens.ControlDark, lineRectangle.Left, lineRectangle.Bottom, lineRectangle.
Right
, lineRectangle.Bottom);
511
paintArgs.Graphics.DrawLine(SystemPens.ControlLightLight, lineRectangle.Left, lineRectangle.Bottom + 1, lineRectangle.
Right
, lineRectangle.Bottom + 1);
515
paintArgs.Graphics.DrawLine(SystemPens.ControlDark, lineRectangle.Left, lineRectangle.Bottom, lineRectangle.
Right
, lineRectangle.Bottom);
516
paintArgs.Graphics.DrawLine(SystemPens.ControlLightLight, lineRectangle.Left, lineRectangle.Bottom + 1, lineRectangle.
Right
, lineRectangle.Bottom + 1);
AuthoringOM\Design\FreeFormDesigner.cs (8)
824
size.Width += Math.Max(childRectangle.
Right
- bounds.
Right
, 0);
937
bounds.Width = Math.Max(minRectangle.
Right
- bounds.Left, e.Bounds.
Right
- bounds.Left);
1118
rightBottom.X = (rightBottom.X < activityDesigner.Bounds.
Right
) ? activityDesigner.Bounds.
Right
: rightBottom.X;
1131
rightBottom.X = (rightBottom.X < connector.Bounds.
Right
) ? connector.Bounds.
Right
: rightBottom.X;
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (1)
52
Point configErrorLocation = new Point(designer.Bounds.
Right
- configErrorSize.Width - margin.Width / 2, designer.Bounds.Top - configErrorSize.Height + margin.Height);
AuthoringOM\Design\Glyphs\SelectionGlyph.cs (3)
57
grabHandles[2] = new Rectangle(selectionRect.
Right
- grabHandleSize.Width, selectionRect.Top, grabHandleSize.Width, grabHandleSize.Height);
58
grabHandles[3] = new Rectangle(new Point(selectionRect.
Right
- grabHandleSize.Width, selectionRect.Top + (selectionRect.Height - grabHandleSize.Height) / 2), grabHandleSize);
59
grabHandles[4] = new Rectangle(selectionRect.
Right
- grabHandleSize.Width, selectionRect.Bottom - grabHandleSize.Height, grabHandleSize.Width, grabHandleSize.Height);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (2)
121
else if (clientPoint.X >= clientRectangle.
Right
- clientRectangle.Width / 10 && hScrollBar.Value < hScrollBar.Maximum - hScrollBar.LargeChange)
165
scrollIndicatorRectangles[1].X = clientRectangle.
Right
- indicatorMargins.Width - scrollIndicatorSize.Width;
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (5)
197
if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Top), new Point(designerBounds.
Right
, designerBounds.Top) })) <= selectionSize.Height + 1)
199
if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.
Right
, designerBounds.Top), new Point(designerBounds.
Right
, designerBounds.Bottom) })) <= selectionSize.Width + 1)
201
if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Bottom), new Point(designerBounds.
Right
, designerBounds.Bottom) })) <= selectionSize.Height + 1)
308
designerBounds.Width += (point.X - designerBounds.
Right
);
AuthoringOM\Design\ParallelActivityDesigner.cs (3)
300
dropTargets[i + 1].Location = new Point(designerBounds1.
Right
+ (designerBounds2.Left - designerBounds1.
Right
) / 2 - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, designerBounds1.Top);
306
dropTargets[containedDesigners.Count].Location = new Point(bounds.
Right
- ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), lastDesigner.Location.Y);
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (2)
389
e.Graphics.DrawLine(e.DesignerTheme.BorderPen, rectangle.Left, rectangle.Bottom, rectangle.
Right
, rectangle.Bottom);
476
e.Graphics.DrawLine(e.DesignerTheme.BorderPen, rectangle.Left, rectangle.Top, rectangle.
Right
, rectangle.Top);
AuthoringOM\Design\WorkflowView.cs (5)
1739
if (!clientRectangle.Contains(rect.Location) || !clientRectangle.Contains(new Point(rect.
Right
, rect.Bottom)))
1742
if (!clientRectangle.Contains(new Point(rect.Left, clientRectangle.Top)) || !clientRectangle.Contains(new Point(rect.
Right
, clientRectangle.Top)))
1749
scrollDelta.Width = (rect.
Right
- clientRectangle.
Right
);
1915
menuCommandService.ShowContextMenu(menuID, buttonRect.
Right
, buttonRect.Top);
System.WorkflowServices (4)
System\Workflow\Activities\Design\GradientPanel.cs (3)
134
arc.X = frame.
Right
- diameter;
150
arc.X = frame.
Right
- diameter;
152
path.AddLine(new Point(frame.
Right
, frame.Top + glossHeight), new Point(frame.Left, frame.Top + glossHeight));
System\Workflow\ComponentModel\Design\HighlightOverlayGlyph.cs (1)
90
arc.X = frame.
Right
- diameter;