450 references to Left
System.Drawing (1)
misc\GDI\NativeMethods.cs (1)
179
this.left = r.
Left
;
System.Web.DataVisualization (12)
Common\General\ChartGraphics.cs (10)
2434
this.DrawLine(markPen, absPositionRounded.
Left
, absPositionRounded.Top, absPositionRounded.
Left
, 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,
2459
absPositionRounded.
Left
,
2461
absPositionRounded.
Left
,
2473
(axis.AxisPosition == AxisPosition.Left) ? absPositionRounded.
Left
: absPositionRounded.Right,
2568
leftLine[0].X = absPositionRounded.
Left
;
2570
leftLine[1].X = absPositionRounded.
Left
;
Common\General\Legend.cs (2)
2459
separatorPosition.X = legendItem.Cells[0].cellPosition.
Left
;
4087
columnStart = rect.
Left
;
System.Windows.Forms (167)
misc\GDI\NativeMethods.cs (1)
179
this.left = r.
Left
;
misc\GDI\WindowsGraphics2.cs (1)
127
DrawEllipse(pen, brush, bounds.
Left
, bounds.Top, bounds.Right, bounds.Bottom);
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (2)
447
Point p2 = new Point(r.
Left
, r.Top ); // upper left.
448
Point p3 = new Point(r.
Left
, r.Bottom - 1); // bottom inner left.
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (8)
101
g.DrawLine(windowFrame, r.
Left
+ 1, r.Top + 1, r.Right - 2, r.Top + 1);
102
g.DrawLine(windowFrame, r.
Left
+ 1, r.Top + 1, r.
Left
+ 1, r.Bottom - 2);
105
g.DrawLine(windowFrame, r.
Left
, r.Bottom - 1, r.Right, r.Bottom - 1);
109
g.DrawLine(highlight, r.
Left
, r.Top, r.Right, r.Top);
110
g.DrawLine(highlight, r.
Left
, r.Top, r.
Left
, r.Bottom);
113
g.DrawLine(buttonShadow, r.
Left
+ 1, r.Bottom - 2, r.Right - 2, r.Bottom - 2);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (7)
181
wg.DrawLine(high, r.
Left
, r.Bottom-1, r.Right, r.Bottom-1);
183
wg.DrawLine(shadow, r.
Left
, r.Top, r.
Left
, r.Bottom);
184
wg.DrawLine(shadow, r.
Left
, r.Top, r.Right- 1, r.Top);
187
wg.DrawLine(face, r.
Left
+ 1, r.Bottom - 2, r.Right - 1, r.Bottom - 2);
222
CheckBoxRenderer.DrawCheckBox(g, new Point(layout.checkBounds.
Left
, layout.checkBounds.Top), CheckBoxRenderer.ConvertFromButtonState(style, true, Control.MouseIsOver), Control.HandleInternal);
230
CheckBoxRenderer.DrawCheckBox(g, new Point(layout.checkBounds.
Left
, layout.checkBounds.Top), CheckBoxRenderer.ConvertFromButtonState(style, false, Control.MouseIsOver), Control.HandleInternal);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (1)
188
RadioButtonRenderer.DrawRadioButton(g, new Point(check.
Left
, check.Top), RadioButtonRenderer.ConvertFromButtonState(style, Control.MouseIsOver), Control.HandleInternal);
winforms\Managed\System\WinForms\ComboBox.cs (3)
4617
int left = parentRect.
Left
;
6065
Point middle = new Point(dropDownRect.
Left
+ dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
6105
Rectangle leftOwnerDrawArea = new Rectangle(0,0,innerBorder.
Left
, comboBox.Height);
winforms\Managed\System\WinForms\Control.cs (3)
9747
e.Graphics.DrawLine(pen, clientRectangle.
Left
, clientRectangle.Top,
9749
e.Graphics.DrawLine(pen, clientRectangle.
Left
, clientRectangle.Bottom,
9806
Rectangle newClipRect = new Rectangle(rectangle.
Left
+ this.Left, rectangle.Top + this.Top, rectangle.Width, rectangle.Height);
winforms\Managed\System\WinForms\ControlPaint.cs (1)
1194
graphics.FillRectangle(brush, bounds.
Left
+ 1, bounds.Top + 1, bounds.Width - 2, bounds.Height - 2);
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
340
int borderAndPaddingWidths = borderWidthsRect.
Left
+ borderWidthsRect.Width + cellStyle.Padding.Horizontal;
winforms\Managed\System\WinForms\DataGridViewCell.cs (3)
1253
cellValueBounds.
Left
+ DATAGRIDVIEWCELL_iconMarginWidth :
4361
rectPadding.X = bounds.
Left
+ cellStyle.Padding.Right;
4370
rectPadding.X = bounds.
Left
+ cellStyle.Padding.Left;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (6)
762
int borderAndPaddingWidths = borderWidthsRect.
Left
+ borderWidthsRect.Width + cellStyle.Padding.Horizontal;
1309
checkBoxX = valBounds.
Left
+ (valBounds.Width - checkBoxSize.Width) / 2;
1313
checkBoxX = valBounds.
Left
;
1393
g.DrawLine(pen, checkBounds.
Left
, checkBounds.Top, checkBounds.Right-1, checkBounds.Top);
1394
g.DrawLine(pen, checkBounds.
Left
, checkBounds.Top, checkBounds.
Left
, checkBounds.Bottom-1);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (4)
538
int borderAndPaddingWidths = borderWidthsRect.
Left
+ borderWidthsRect.Width + cellStyle.Padding.Horizontal;
962
sortGlyphLocation = new Point(valBounds.
Left
-
1011
sortGlyphLocation = new Point(valBounds.
Left
+ (valBounds.Width-sortGlyphWidth)/2,
1252
Rectangle cornerClip = new Rectangle(bounds.
Left
, bounds.Bottom-2, 2, 2);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (9)
1372
int borderAndPaddingWidths = borderWidthsRect.
Left
+ borderWidthsRect.Width + cellStyle.Padding.Horizontal;
2194
g.FillRectangle(br, valBounds.
Left
, valBounds.Top, valBounds.Width, valBounds.Height);
2210
g.FillRectangle(br, valBounds.
Left
+ 1, valBounds.Top + 1, valBounds.Width - 2, valBounds.Height - 2);
2221
g.FillRectangle(br, valBounds.
Left
, valBounds.Top, valBounds.Width, valBounds.Height);
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,
2441
Point middle = new Point(dropRect.
Left
+ dropRect.Width / 2, dropRect.Top + dropRect.Height / 2);
2462
Point middle = new Point(dropRect.
Left
+ (dropRect.Width - 1) / 2,
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
476
int borderAndPaddingWidths = borderWidthsRect.
Left
+ borderWidthsRect.Width + cellStyle.Padding.Horizontal;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
663
int borderAndPaddingWidths = borderWidthsRect.
Left
+ borderWidthsRect.Width + cellStyle.Padding.Horizontal;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (32)
2569
int overflowWidth = leftEdge - this.mouseBarOffset - clip.
Left
- DataGridViewBand.maxBandThickness + 1;
3026
r.X = Math.Max(inside.
Left
, r.X);
3033
r.X = Math.Max(r.X, inside.
Left
);
3044
r.X = Math.Max(inside.
Left
, r.X);
4915
columnX = this.layout.RowHeaders.
Left
- 1;
4919
columnX = this.layout.RowHeaders.
Left
;
6324
x = Math.Max(e.X + this.mouseBarOffset, this.layout.Data.
Left
- 1);
8671
hti = HitTest(this.RightToLeftInternal ? rectScrollingArea.Right-1 : rectScrollingArea.
Left
, mouseY);
8698
hti = HitTest(this.RightToLeftInternal ? rectScrollingArea.Right : rectScrollingArea.
Left
, mouseY);
8721
mouseX = rectScrollingArea.
Left
+1;
8726
hti = HitTest(this.RightToLeftInternal ? rectScrollingArea.Right : rectScrollingArea.
Left
, mouseY);
8745
mouseX = rectScrollingArea.
Left
+1;
8765
if (mouseX >= rectScrollingArea.
Left
&& mouseX <= rectScrollingArea.Right)
8801
if ((!this.RightToLeftInternal && mouseX < rectScrollingArea.
Left
) ||
8820
xOffset = mouseX - rectScrollingArea.
Left
;
8831
Debug.Assert((!this.RightToLeftInternal && mouseX > rectScrollingArea.Right) || (this.RightToLeftInternal && mouseX < rectScrollingArea.
Left
));
8861
xOffset = rectScrollingArea.
Left
- mouseX;
8942
if ((!this.RightToLeftInternal && mouseX < rectScrollingArea.
Left
) ||
8967
xOffset = mouseX - rectScrollingArea.
Left
;
8973
if (!this.RightToLeftInternal && mouseX < this.layout.Data.
Left
)
8975
mouseX = this.layout.Data.
Left
+1;
8986
(this.RightToLeftInternal && mouseX < rectScrollingArea.
Left
))
9012
xOffset = rectScrollingArea.
Left
- mouseX;
9025
mouseX = rectScrollingArea.
Left
+1;
9039
mouseX = rectScrollingArea.
Left
+1;
9408
hti.colStart = this.layout.TopLeftHeader.
Left
;
9412
(this.RightToLeftInternal && x - this.layout.TopLeftHeader.
Left
< DATAGRIDVIEW_columnSizingHotZone))
9420
hti.mouseBarOffset = this.layout.TopLeftHeader.
Left
- x - 1;
9561
hti.colStart = this.layout.RowHeaders.
Left
;
9601
(this.RightToLeftInternal && x - this.layout.RowHeaders.
Left
< DATAGRIDVIEW_columnSizingHotZone))
9609
hti.mouseBarOffset = this.layout.RowHeaders.
Left
- x - 1;
19830
Debug.Assert(bounds.
Left
== 0);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (2)
665
int borderAndPaddingWidths = borderWidthsRect.
Left
+ borderWidthsRect.Width + cellStyle.Padding.Horizontal;
1134
bounds.
Left
+ DATAGRIDVIEWROWHEADERCELL_iconMarginWidth,
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
438
int borderAndPaddingWidths = borderWidthsRect.
Left
+ borderWidthsRect.Width + cellStyle.Padding.Horizontal;
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (1)
184
int borderAndPaddingWidths = borderWidthsRect.
Left
+ borderWidthsRect.Width + cellStyle.Padding.Horizontal;
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (17)
199
clipMiddle.X = clipLeft.
Left
- clipMiddle.Width;
229
g.DrawLine(light, bounds.
Left
+ 1, bounds.Top + 1, bounds.
Left
+ 1, bounds.Height - 1);
230
g.DrawLine(dark, bounds.
Left
, bounds.Top + 1, bounds.
Left
, bounds.Height - 2);
233
g.DrawLine(light, bounds.
Left
, bounds.Height - 1, bounds.Width - 1, bounds.Height - 1);
234
g.DrawLine(dark, bounds.
Left
, bounds.Height - 2, bounds.Width - 1, bounds.Height - 2);
237
g.DrawLine(light, bounds.
Left
+ 1, bounds.Top + 1, bounds.Width - 1, bounds.Top + 1);
238
g.DrawLine(dark, bounds.
Left
, bounds.Top, bounds.Width - 2, bounds.Top);
287
g.DrawLine(light, bounds.
Left
+ 1, boxTop, bounds.
Left
+ 1, bounds.Height - 1);
288
g.DrawLine(dark, bounds.
Left
, boxTop - 1, bounds.
Left
, bounds.Height - 2);
291
g.DrawLine(light, bounds.
Left
, bounds.Height - 1, bounds.Width, bounds.Height - 1);
292
g.DrawLine(dark, bounds.
Left
, bounds.Height - 2, bounds.Width - 1, bounds.Height - 2);
295
g.DrawLine(light, bounds.
Left
+ 1, boxTop, textBounds.X - 2, boxTop);
296
g.DrawLine(dark, bounds.
Left
, boxTop - 1, textBounds.X - 3, boxTop - 1);
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (3)
195
left = Math.Max(Math.Abs(left), Math.Abs(cachedBounds.
Left
));
200
left = left > 0 ? left : element.Bounds.
Left
;
563
anchorInfo.Left = element.Bounds.
Left
;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (4)
472
Debug.Assert(region1.Right == region2.
Left
, "Adjacency error.");
477
Debug.Assert(region2.Right == region1.
Left
, "Adjacency error.");
512
int left = (specified & AnchorStyles.Left) != 0 ? substitutionBounds.
Left
: originalBounds.
Left
;
winforms\Managed\System\WinForms\ListView.cs (4)
3139
x = Math.Max(itemBounds.
Left
, iconBounds.
Left
) - 1;
3142
x = Math.Max(itemBounds.
Left
, iconBounds.
Left
) + 1;
winforms\Managed\System\WinForms\ListViewItem.cs (3)
1033
return this.ListView.FindNearestItem(searchDirection, r.
Left
, r.Top);
1035
return this.ListView.FindNearestItem(searchDirection, r.
Left
, r.Bottom);
1037
return this.ListView.FindNearestItem(searchDirection, r.
Left
, r.Top);
winforms\Managed\System\WinForms\NativeMethods.cs (2)
3091
this.left = r.
Left
;
6473
this.left = r.
Left
;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
5862
newBounds.X = dragBaseRect.
Left
+ delta;
winforms\Managed\System\WinForms\StatusStrip.cs (1)
576
gripLocation = new NativeMethods.POINT(SizeGripBounds.
Left
, SizeGripBounds.Bottom);
winforms\Managed\System\WinForms\ToolStrip.cs (3)
4305
gripRectangle.X = displayRect.
Left
;
5491
insertionRect = new Rectangle(item.Bounds.
Left
, owner.Margin.Top, ToolStrip.insertionBeamWidth, owner.Height - (owner.Margin.Vertical) -1);
5550
if ((orig.
Left
+ widthUnit) >= check.X) {
winforms\Managed\System\WinForms\ToolStripComboBox.cs (1)
736
Point middle = new Point(dropDownRect.
Left
+ dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (1)
482
this.maxItemSize.Width = (arrowRectangle.Right + scaledArrowPadding.Right) - imageMarginBounds.
Left
;
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (1)
336
g.DrawLine(foreColorPen, bounds.
Left
, startY, bounds.Right - 1, startY);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (8)
381
g.DrawLine(p, bounds.
Left
, bounds.Height - 1, bounds.Right, bounds.Height - 1);
909
Rectangle bounds = DpiHelper.IsScalingRequired ? new Rectangle(e.ImageRectangle.
Left
-2, (e.Item.Height - e.ImageRectangle.Height )/2- 1, e.ImageRectangle.Width+4, e.ImageRectangle.Height +2) :
910
new Rectangle(e.ImageRectangle.
Left
- 2, 1, e.ImageRectangle.Width + 4, e.Item.Height - 2);
1103
Point start = new Point(overflowBoundsFill.
Left
- 1, overflowBoundsFill.Height - 2);
1104
Point end = new Point(overflowBoundsFill.
Left
, overflowBoundsFill.Height - 2);
1329
g.DrawLine(foreColorPen, bounds.
Left
, startY, bounds.Right - 1, startY);
1334
g.DrawLine(highlightColorPen, bounds.
Left
+ 1, startY, bounds.Right - 1, startY);
1443
Point middle = new Point(dropDownRect.
Left
+ dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
winforms\Managed\System\WinForms\ToolStripRenderer.cs (1)
711
Point middle = new Point(dropDownRect.
Left
+ dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (6)
251
int lastLeft = displayRectangle.
Left
;// + toolStrip.Padding.Left;
270
lastLeft = clientRectangle.
Left
;
318
int x = displayRectangle.
Left
;
455
int x = displayRectangle.
Left
+ itemMargin.Left;
523
|| (itemBounds.
Left
< displayRectangle.
Left
)) {
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);
671
g.DrawLine(leftPen, bounds.
Left
, bounds.Top, bounds.
Left
, bounds.Bottom-1);
673
g.DrawLine(bottomPen, bounds.
Left
, bounds.Bottom-1, bounds.Right -1, bounds.Bottom -1);
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
874
g.FillRectangle(b, 0, 0, clientRect.
Left
, this.Height); // left border
winforms\Managed\System\WinForms\ToolTip.cs (6)
1572
visibleRect.left = (r.left < screen.WorkingArea.
Left
) ? screen.WorkingArea.
Left
:r.left;
1756
int pointX = (toolRectangle.
Left
+ toolRectangle.Right) / 2;
1798
int centeredX = toolRectangle.
Left
+ toolRectangle.Width / 2 - width / 2; // tooltip will be aligned with tool vertically
1805
possibleLocations[LEFT_LOCATION_INDEX] = new Rectangle(toolRectangle.
Left
- width, centeredY, width, height);
1866
return new Point(optimalLocation.
Left
, optimalLocation.Top);
winforms\Managed\System\WinForms\TreeView.cs (1)
2922
NativeMethods.HWND_TOPMOST, bounds.
Left
, bounds.Top, 0, 0, NativeMethods.SWP_NOACTIVATE | NativeMethods.SWP_NOSIZE | NativeMethods.SWP_NOZORDER);
winforms\Managed\System\WinForms\UpDownBase.cs (4)
811
Rectangle clipLeft = new Rectangle(bounds.
Left
, bounds.Top, border, bounds.Height);
812
Rectangle clipTop = new Rectangle(bounds.
Left
, bounds.Top, bounds.Width, border);
814
Rectangle clipBottom = new Rectangle(bounds.
Left
, bounds.Bottom - border, bounds.Width, border);
1736
e.Graphics.DrawLine(pen, clientRect.
Left
, clientRect.Bottom - 1, clientRect.Right - 1, clientRect.Bottom - 1);
winforms\Managed\System\WinForms\WinFormsUtils.cs (5)
114
else if (bounds.
Left
< constrainingBounds.
Left
) {
116
bounds.X = constrainingBounds.
Left
;
630
HandleRef hClippingRegion = new HandleRef(null, SafeNativeMethods.CreateRectRgn(viewportOrg.x + bounds.
Left
, viewportOrg.y + bounds.Top, viewportOrg.x + bounds.Right, viewportOrg.y + bounds.Bottom));
645
success = SafeNativeMethods.SetViewportOrgEx(hDC, viewportOrg.x + bounds.
Left
, viewportOrg.y + bounds.Top, lastViewPort);
System.Windows.Forms.DataVisualization (12)
Common\General\ChartGraphics.cs (10)
2434
this.DrawLine(markPen, absPositionRounded.
Left
, absPositionRounded.Top, absPositionRounded.
Left
, 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,
2459
absPositionRounded.
Left
,
2461
absPositionRounded.
Left
,
2473
(axis.AxisPosition == AxisPosition.Left) ? absPositionRounded.
Left
: absPositionRounded.Right,
2568
leftLine[0].X = absPositionRounded.
Left
;
2570
leftLine[1].X = absPositionRounded.
Left
;
Common\General\Legend.cs (2)
2459
separatorPosition.X = legendItem.Cells[0].cellPosition.
Left
;
4087
columnStart = rect.
Left
;
System.Workflow.Activities (24)
Designers\ConditionalDesigner.cs (5)
100
diamondRectangle.X = bounds.
Left
+ bounds.Width / 2 - diamondRectangle.Width / 2;
121
new Point(rectangle.
Left
+ rectangle.Width / 2, rectangle.Top),
123
new Point(rectangle.
Left
+ rectangle.Width / 2, rectangle.Bottom - 1),
124
new Point(rectangle.
Left
, rectangle.Top + rectangle.Height / 2),
125
new Point(rectangle.
Left
+ rectangle.Width / 2, rectangle.Top)
Designers\ListenDesigner.cs (1)
80
roundRectangle.X = bounds.
Left
+ bounds.Width / 2 - roundRectangle.Width / 2;
Designers\SetStateDesigner.cs (1)
94
bounds.
Left
+ margin.Width,
Designers\StateDesigner.Layouts.cs (5)
513
Point point = new Point(layoutBounds.
Left
- 4, midVert);
711
graphics.DrawLine(designerTheme.BorderPen, bounds.
Left
, bounds.Bottom, bounds.Right, bounds.Bottom);
1025
graphics.DrawLine(designerTheme.BorderPen, rectangle.
Left
, rectangle.Bottom, rectangle.Right, rectangle.Bottom);
1377
bounds.
Left
+ (bounds.Width - _designerLayout.Size.Width) / 2,
1385
origin.X = bounds.
Left
+ (bounds.Width - activeDesignerSize.Width) / 2;
Designers\StateDesignerConnector.cs (6)
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));
236
path.AddLine(new Point(bounds.
Left
+ bounds.Width / 2, bounds.Bottom), new Point(bounds.
Left
, bounds.Top + bounds.Height / 2));
237
path.AddLine(new Point(bounds.
Left
, bounds.Top + bounds.Height / 2), new Point(bounds.
Left
+ bounds.Width / 2, bounds.Top));
Designers\StateMachineDesignerPaint.cs (3)
57
int left = rectangle.
Left
;
62
if (left < bounds.
Left
)
63
left = bounds.
Left
;
Designers\WhileDesigner.cs (3)
51
connectionPoint = new Point(bounds.
Left
+ bounds.Width / 2 + e.AmbientTheme.Margin.Width / 2, bounds.Top + e.AmbientTheme.Margin.Height / 2);
54
points[0].X = bounds.
Left
+ bounds.Width / 2;
64
DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, new Point[] { points[0], new Point(bounds.
Left
+ bounds.Width / 2, bounds.Bottom) }, LineAnchor.None, LineAnchor.None);
System.Workflow.ComponentModel (222)
AuthoringOM\Design\ActivityDesigner.cs (13)
540
textRectangle.X = bounds.
Left
+ ambientTheme.Margin.Width;
564
imageRectangle.X = bounds.
Left
+ WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Width;
947
Rectangle hitRectangle = new Rectangle(bounds.
Left
, bounds.Top, bounds.
Left
- bounds.
Left
, bounds.Height);
950
hitRectangle = new Rectangle(bounds.
Left
, bounds.Top, bounds.Width, bounds.Height - bounds.Height);
956
hitRectangle = new Rectangle(bounds.
Left
, bounds.Bottom, bounds.Width, bounds.Bottom - bounds.Bottom);
1180
connections.Add(new Point(bounds.
Left
, bounds.Top + bounds.Height / 2));
1183
connections.Add(new Point(bounds.
Left
+ bounds.Width / 2, bounds.Top));
1189
connections.Add(new Point(bounds.
Left
+ bounds.Width / 2, bounds.Bottom));
3042
smartTagRectangle.X = rectangle.
Left
- margin.Width / 2;
3065
formShown = (Form.ActiveForm.Location == designer.PointToScreen(new Point(activatedBounds.
Left
, activatedBounds.Bottom)));
3119
this.activeDesigner.OnShowSmartTagVerbs(new Point(bounds.
Left
, bounds.Bottom + 1));
AuthoringOM\Design\ActivityPreviewDesigner.cs (4)
572
this.previewStrip.Location = new Point(bounds.
Left
+ bounds.Width / 2 - this.previewStrip.Size.Width / 2, Location.Y + TitleHeight + e.AmbientTheme.Margin.Height);
581
this.previewWindow.Location = new Point(bounds.
Left
+ bounds.Width / 2 - this.previewWindow.Size.Width / 2, previewStripRectangle.Bottom + 3 * e.AmbientTheme.Margin.Height);
583
this.separatorLine[0].X = bounds.
Left
+ e.AmbientTheme.Margin.Width;
800
return new Point(dropConnector.
Left
+ dropConnector.Width / 2, dropConnector.Top + dropConnector.Height / 2);
AuthoringOM\Design\Connector.cs (15)
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));
525
path.AddLine(new Point(bounds.
Left
+ bounds.Width / 2, bounds.Bottom), new Point(bounds.
Left
, bounds.Top + bounds.Height / 2));
526
path.AddLine(new Point(bounds.
Left
, bounds.Top + bounds.Height / 2), new Point(bounds.
Left
+ bounds.Width / 2, bounds.Top));
1699
designerEdgeCover.Add(DesignerEdges.Left, new Point[] { new Point(bounds.
Left
, bounds.Top), new Point(bounds.
Left
, bounds.Bottom) });
1700
designerEdgeCover.Add(DesignerEdges.Top, new Point[] { new Point(bounds.
Left
, bounds.Top), new Point(bounds.Right, bounds.Top) });
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);
2791
AddCover(new ConnectorSegment(new Point(rectangle.
Left
, rectangle.Top), new Point(rectangle.
Left
, 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 (91)
213
rectangle.X = destination.
Left
;
217
rectangle.X = destination.
Left
+ destination.Width / 2 - rectangle.Width / 2;
305
graphics.DrawLine(lightPen, bounds.
Left
+ 1, bounds.Bottom - 1, bounds.
Left
+ 1, bounds.Top + 1);
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);
309
graphics.DrawLine(darkdarkPen, bounds.
Left
, bounds.Bottom, bounds.Right, bounds.Bottom);
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);
382
graphics.DrawLine(CompositeDesignerTheme.ExpandButtonForegoundPen, boundingRect.
Left
+ boundingRect.Width / 2, boundingRect.Top + 2, boundingRect.
Left
+ boundingRect.Width / 2, boundingRect.Bottom - 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);
758
roundedRectangle.AddLine(rectangle.
Left
, rectangle.Bottom - radius, rectangle.
Left
, rectangle.Top + radius);
759
roundedRectangle.AddArc(rectangle.
Left
, rectangle.Top, diameter, diameter, 180.0f, 90.0f);
760
roundedRectangle.AddLine(rectangle.
Left
+ radius, rectangle.Top, rectangle.Right - radius, rectangle.Top);
764
roundedRectangle.AddLine(rectangle.Right - radius, rectangle.Bottom, rectangle.
Left
+ radius, rectangle.Bottom);
765
roundedRectangle.AddArc(rectangle.
Left
, rectangle.Bottom - diameter, diameter, diameter, 90.0f, 90.0f);
784
scrollIndicatorPath.AddLine(bounds.
Left
+ (bounds.Width - arrowSize.Width) / 2, bounds.Top, bounds.
Left
+ (bounds.Width - arrowSize.Width) / 2, bounds.Top + arrowSize.Height);
785
scrollIndicatorPath.AddLine(bounds.
Left
+ (bounds.Width - arrowSize.Width) / 2, bounds.Top + arrowSize.Height, bounds.
Left
+ (bounds.Width - arrowSize.Width) / 2 + arrowSize.Width, bounds.Top + midPoint);
786
scrollIndicatorPath.AddLine(bounds.
Left
+ (bounds.Width - arrowSize.Width) / 2 + arrowSize.Width, bounds.Top + midPoint, bounds.
Left
+ (bounds.Width - arrowSize.Width) / 2, bounds.Top);
790
scrollIndicatorPath.AddLine(bounds.
Left
+ (bounds.Width - arrowSize.Width) / 2, bounds.Top + midPoint, bounds.
Left
+ (bounds.Width - arrowSize.Width) / 2 + arrowSize.Width, bounds.Top + arrowSize.Height);
791
scrollIndicatorPath.AddLine(bounds.
Left
+ (bounds.Width - arrowSize.Width) / 2 + arrowSize.Width, bounds.Top + arrowSize.Height, bounds.
Left
+ (bounds.Width - arrowSize.Width) / 2 + arrowSize.Width, bounds.Top);
792
scrollIndicatorPath.AddLine(bounds.
Left
+ (bounds.Width - arrowSize.Width) / 2 + arrowSize.Width, bounds.Top, bounds.
Left
+ (bounds.Width - arrowSize.Width) / 2, bounds.Top + midPoint);
803
scrollIndicatorPath.AddLine(bounds.
Left
, bounds.Top + (bounds.Height - arrowSize.Height) / 2, bounds.
Left
+ arrowSize.Width, bounds.Top + (bounds.Height - arrowSize.Height) / 2);
804
scrollIndicatorPath.AddLine(bounds.
Left
+ arrowSize.Width, bounds.Top + (bounds.Height - arrowSize.Height) / 2, bounds.
Left
+ midPoint, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height);
805
scrollIndicatorPath.AddLine(bounds.
Left
+ midPoint, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height, bounds.
Left
, bounds.Top + (bounds.Height - arrowSize.Height) / 2);
809
scrollIndicatorPath.AddLine(bounds.
Left
+ midPoint, bounds.Top + (bounds.Height - arrowSize.Height) / 2, bounds.
Left
+ arrowSize.Width, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height);
810
scrollIndicatorPath.AddLine(bounds.
Left
+ arrowSize.Width, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height, bounds.
Left
, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height);
811
scrollIndicatorPath.AddLine(bounds.
Left
, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height, bounds.
Left
+ midPoint, bounds.Top + (bounds.Height - arrowSize.Height) / 2);
828
pagePaths[0].AddLine(pageBounds.
Left
, pageBounds.Top + pageFoldSize, pageBounds.
Left
+ pageFoldSize, pageBounds.Top + pageFoldSize);
829
pagePaths[0].AddLine(pageBounds.
Left
+ pageFoldSize, pageBounds.Top + pageFoldSize, pageBounds.
Left
+ pageFoldSize, pageBounds.Top);
830
pagePaths[0].AddLine(pageBounds.
Left
+ pageFoldSize, pageBounds.Top, pageBounds.Right, pageBounds.Top);
832
pagePaths[0].AddLine(pageBounds.Right, pageBounds.Bottom, pageBounds.
Left
, pageBounds.Bottom);
833
pagePaths[0].AddLine(pageBounds.
Left
, pageBounds.Bottom, pageBounds.
Left
, pageBounds.Top + pageFoldSize);
837
pagePaths[1].AddLine(pageBounds.
Left
, pageBounds.Top + pageFoldSize, pageBounds.
Left
+ pageFoldSize, pageBounds.Top + pageFoldSize);
838
pagePaths[1].AddLine(pageBounds.
Left
+ pageFoldSize, pageBounds.Top + pageFoldSize, pageBounds.
Left
+ pageFoldSize, pageBounds.Top);
839
pagePaths[1].AddLine(pageBounds.
Left
+ pageFoldSize, pageBounds.Top, pageBounds.
Left
, pageBounds.Top + pageFoldSize);
845
pagePaths[0].AddLine(pageBounds.
Left
, pageBounds.Top, pageBounds.Right, pageBounds.Top);
847
pagePaths[0].AddLine(pageBounds.Right, pageBounds.Bottom, pageBounds.
Left
+ pageFoldSize, pageBounds.Bottom);
848
pagePaths[0].AddLine(pageBounds.
Left
+ pageFoldSize, pageBounds.Bottom, pageBounds.
Left
+ pageFoldSize, pageBounds.Bottom - pageFoldSize);
849
pagePaths[0].AddLine(pageBounds.
Left
+ pageFoldSize, pageBounds.Bottom - pageFoldSize, pageBounds.
Left
, pageBounds.Bottom - pageFoldSize);
850
pagePaths[0].AddLine(pageBounds.
Left
, pageBounds.Bottom - pageFoldSize, pageBounds.
Left
, pageBounds.Top);
854
pagePaths[1].AddLine(pageBounds.
Left
+ pageFoldSize, pageBounds.Bottom, pageBounds.
Left
+ pageFoldSize, pageBounds.Bottom - pageFoldSize);
855
pagePaths[1].AddLine(pageBounds.
Left
+ pageFoldSize, pageBounds.Bottom - pageFoldSize, pageBounds.
Left
, pageBounds.Bottom - pageFoldSize);
856
pagePaths[1].AddLine(pageBounds.
Left
, pageBounds.Bottom - pageFoldSize, pageBounds.
Left
+ pageFoldSize, pageBounds.Bottom);
863
pagePaths[0].AddLine(pageBounds.
Left
, pageBounds.Top, pageBounds.Right - pageFoldSize, pageBounds.Top);
867
pagePaths[0].AddLine(pageBounds.Right, pageBounds.Bottom, pageBounds.
Left
, pageBounds.Bottom);
868
pagePaths[0].AddLine(pageBounds.
Left
, pageBounds.Bottom, pageBounds.
Left
, pageBounds.Top);
880
pagePaths[0].AddLine(pageBounds.
Left
, pageBounds.Top, pageBounds.Right, pageBounds.Top);
884
pagePaths[0].AddLine(pageBounds.Right - pageFoldSize, pageBounds.Bottom, pageBounds.
Left
, pageBounds.Bottom);
885
pagePaths[0].AddLine(pageBounds.
Left
, pageBounds.Bottom, pageBounds.
Left
, pageBounds.Top);
1036
if (gridCoOrd >= viewableRectangle.
Left
)
1045
if (showMinorGrid && (gridCoOrd + gridUnit.Width / 2) >= viewableRectangle.
Left
&& (gridCoOrd + gridUnit.Width / 2) <= viewableRectangle.Right)
1067
if (!NativeMethods.MoveToEx(this.hdc, viewableRectangle.
Left
+ 1, gridCoOrd, null))
1080
if (!NativeMethods.MoveToEx(this.hdc, viewableRectangle.
Left
+ 1, gridCoOrd + gridUnit.Height / 2, null))
1841
distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new Point(rect.
Left
, rect.Top), new Point(rect.
Left
, rect.Bottom) }));
1847
distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new Point(rect.
Left
, rect.Top), new Point(rect.Right, rect.Top) }));
1859
distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new Point(rect.
Left
, rect.Bottom), new Point(rect.Right, rect.Bottom) }));
1919
distances.Add(DistanceBetweenPoints(point, new Point(rect.
Left
, rect.Top)));
1920
distances.Add(DistanceBetweenPoints(point, new Point(rect.
Left
+ rect.Width / 2, rect.Top)));
1925
distances.Add(DistanceBetweenPoints(point, new Point(rect.
Left
, rect.Bottom)));
1926
distances.Add(DistanceBetweenPoints(point, new Point(rect.
Left
, rect.Bottom - rect.Height / 2)));
AuthoringOM\Design\DesignerWidgets.cs (32)
338
this.itemStrip.Location = new Point(leftScrollButtonBounds.
Left
, leftScrollButtonBounds.Bottom);
715
itemRectangle.X = bounds.
Left
+ (itemIndex * this.itemSize.Width) + ((itemIndex + 1) * this.margin.Width);
720
itemRectangle.X = bounds.
Left
+ this.margin.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))
1245
Point imagePoint = new Point(itemBounds.
Left
+ 3, itemBounds.Top + 3);
1260
Rectangle textRectangle = new Rectangle(itemBounds.
Left
+ 20 + 5 + 2, itemBounds.Top + 1, this.itemWidth - (20 + 5 + 4), this.itemHeight - 3);
1312
if (this.workingRectangle.
Left
> bounds.
Left
)
1313
fittingOffset.Width += this.workingRectangle.
Left
- bounds.
Left
;
2261
Point screenCoOrd = this.parentControl.PointToScreen(new Point(this.inplaceTipRectangle.
Left
, this.inplaceTipRectangle.Top));
2371
toolInfo.rect.left = rectangle.
Left
;
2537
rectangles[j].X = stripRectangle.
Left
+ (i * (itemSize.Width + itemMargin.Width));
2543
rectangles[j] = new Rectangle(rectangles[j].
Left
, rectangles[j].Top, stripRectangle.Right - rectangles[j].
Left
, rectangles[j].Height);
2564
itemRectangle.X = stripRectangle.
Left
+ (itemIndex * itemSize.Width) + ((itemIndex + 1) * itemMargin.Width);
2740
imageRectangle.X = itemRectangle.
Left
+ 2;
2759
graphics.DrawLine(ambientTheme.DropIndicatorPen, dropTargets[activeDropTarget].
Left
+ dropTargets[activeDropTarget].Width / 2, dropTargets[activeDropTarget].Top, dropTargets[activeDropTarget].
Left
+ dropTargets[activeDropTarget].Width / 2, dropTargets[activeDropTarget].Bottom);
2833
stripRectangle.Width = (scrollRightButton.
Left
- margin.Width) - (scrollLeftButton.Right + margin.Width);
3245
descRectanglePos.X = this.bounds.
Left
+ this.bounds.Width / 2 - this.previewModeDescRectangle.Width / 2 + this.previewModeButtonRectangle.Width + margin.Width;
3260
location.X = this.canvasBounds.
Left
+ this.canvasBounds.Width / 2 - PreviewDesigner.Size.Width / 2;
3413
graphics.DrawRectangle(Pens.Black, this.previewModeButtonRectangle.
Left
- 1, this.previewModeButtonRectangle.Top - 1, this.previewModeButtonRectangle.Width + 1, this.previewModeButtonRectangle.Height + 1);
3417
ActivityDesignerPaint.DrawImage(graphics, previewModeImage, new Rectangle(this.previewModeButtonRectangle.
Left
+ 2, this.previewModeButtonRectangle.Top + 2, this.previewModeButtonRectangle.Width - 4, this.previewModeButtonRectangle.Height - 4), DesignerContentAlignment.Center);
3430
graphics.DrawLine(SystemPens.ControlDarkDark, canvasRect.
Left
, canvasRect.Top, canvasRect.
Left
, canvasRect.Bottom);
3431
graphics.DrawLine(SystemPens.ControlDarkDark, canvasRect.
Left
, canvasRect.Top, canvasRect.Right, canvasRect.Top);
3433
graphics.DrawLine(SystemPens.ControlLight, canvasRect.
Left
, canvasRect.Bottom, canvasRect.Right, canvasRect.Bottom);
3435
graphics.DrawLine(SystemPens.ControlLight, canvasRect.
Left
, canvasRect.Top, canvasRect.
Left
, canvasRect.Bottom);
3436
graphics.DrawLine(SystemPens.ControlLight, canvasRect.
Left
, canvasRect.Top, canvasRect.Right, canvasRect.Top);
3466
destnRectangle.X = this.canvasBounds.
Left
+ this.canvasBounds.Width / 2 - destnRectangle.Width / 2;
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (6)
509
Rectangle lineRectangle = new Rectangle(this.ClientRectangle.
Left
, this.artifactLabel.Bottom + ((this.typeNameTableLayoutPanel.Top + this.typeTextBox.Top - this.artifactLabel.Bottom) / 2), this.ClientRectangle.Width, 1);
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);
514
lineRectangle = new Rectangle(this.ClientRectangle.
Left
, this.helpTextHolder.Bottom + ((this.okCancelTableLayoutPanel.Top + this.buttonOK.Top - this.helpTextHolder.Bottom) / 2), this.ClientRectangle.Width, 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 (11)
791
newLocation.X = Math.Min(newLocation.X, childRectangle.
Left
);
823
size.Width += Math.Max(bounds.
Left
- childRectangle.
Left
, 0);
935
bounds.X = Math.Min(minRectangle.
Left
, e.Bounds.
Left
);
937
bounds.Width = Math.Max(minRectangle.Right - bounds.
Left
, e.Bounds.Right - bounds.
Left
);
1116
leftTop.X = (activityDesigner.Bounds.
Left
< leftTop.X) ? activityDesigner.Bounds.
Left
: leftTop.X;
1129
leftTop.X = (connector.Bounds.
Left
< leftTop.X) ? connector.Bounds.
Left
: leftTop.X;
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (2)
84
graphics.DrawRectangle(SystemPens.ControlDarkDark, activatedBounds.
Left
, activatedBounds.Top, activatedBounds.Width - 1, activatedBounds.Height - 1);
115
Point location = designer.ParentView.LogicalPointToScreen(new Point(bounds.
Left
, bounds.Bottom));
AuthoringOM\Design\Glyphs\SelectionGlyph.cs (4)
56
grabHandles[1] = new Rectangle(new Point(selectionRect.
Left
+ (selectionRect.Width - grabHandleSize.Width) / 2, selectionRect.Top), grabHandleSize);
60
grabHandles[5] = new Rectangle(new Point(selectionRect.
Left
+ (selectionRect.Width - grabHandleSize.Width) / 2, selectionRect.Bottom - grabHandleSize.Height), grabHandleSize);
61
grabHandles[6] = new Rectangle(selectionRect.
Left
, selectionRect.Bottom - grabHandleSize.Height, grabHandleSize.Width, grabHandleSize.Height);
62
grabHandles[7] = new Rectangle(new Point(selectionRect.
Left
, selectionRect.Top + (selectionRect.Height - grabHandleSize.Height) / 2), grabHandleSize);
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (5)
195
if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.
Left
, designerBounds.Top), new Point(designerBounds.
Left
, designerBounds.Bottom) })) <= selectionSize.Width + 1)
197
if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.
Left
, designerBounds.Top), new Point(designerBounds.Right, designerBounds.Top) })) <= selectionSize.Height + 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)
290
designerBounds.Width += (designerBounds.
Left
- x);
AuthoringOM\Design\ParallelActivityDesigner.cs (7)
300
dropTargets[i + 1].Location = new Point(designerBounds1.Right + (designerBounds2.
Left
- designerBounds1.Right) / 2 - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, designerBounds1.Top);
351
parallelLinks[0].X = bounds.
Left
+ bounds.Width / 2;
353
parallelLinks[1].X = bounds.
Left
+ bounds.Width / 2;
372
parallelLinks[0].X = bounds.
Left
+ bounds.Width / 2;
374
parallelLinks[1].X = bounds.
Left
+ bounds.Width / 2;
424
DrawConnectors(e.Graphics, e.AmbientTheme.DropIndicatorPen, new Point[] { new Point(dropTargetRectangle.
Left
+ dropTargetRectangle.Width / 2, dropTargetRectangle.Top + 2), new Point(dropTargetRectangle.
Left
+ dropTargetRectangle.Width / 2, dropTargetRectangle.Bottom - 2) }, compositeDesignerTheme.ConnectorStartCap, compositeDesignerTheme.ConnectorEndCap);
AuthoringOM\Design\SequentialActivityDesigner.cs (8)
163
helpTextRectangle.X = connectors[0].
Left
+ connectors[0].Width / 2 - this.helpTextSize.Width / 2;
208
connections.Add(new Point(startDesignerBounds.
Left
+ startDesignerBounds.Width / 2, startDesignerBounds.Top));
209
connections.Add(new Point(startDesignerBounds.
Left
+ startDesignerBounds.Width / 2, startDesignerBounds.Bottom));
238
connections.Add(new Point(endDesignerBounds.
Left
+ endDesignerBounds.Width / 2, endDesignerBounds.Top));
239
connections.Add(new Point(endDesignerBounds.
Left
+ endDesignerBounds.Width / 2, endDesignerBounds.Bottom));
425
DrawConnectors(e.Graphics, pen, new Point[] { new Point(connectors[i].
Left
+ connectors[i].Width / 2, connectors[i].Top + 2), new Point(connectors[i].
Left
+ connectors[i].Width / 2, connectors[i].Bottom - 2) }, startCap, endCap);
530
glyphLocation = new Point(helpTextRectangle.
Left
+ helpTextRectangle.Width / 2 + 1, helpTextRectangle.Top - ambientTheme.DropIndicatorSize.Height / 2);
AuthoringOM\Design\SequentialWorkflowHeaderFooter.cs (3)
119
bounds.X = designerBounds.
Left
+ designerBounds.Width / 2 - bounds.Width / 2;
140
bounds.X = designerBounds.
Left
+ designerBounds.Width / 2 - this.textSize.Width / 2;
164
bounds.X = designerBounds.
Left
+ designerBounds.Width / 2 - bounds.Width / 2;
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\StructuredCompositeActivityDesigner.cs (1)
696
return new Point(dropConnector.
Left
+ dropConnector.Width / 2, dropConnector.Top + dropConnector.Height / 2);
AuthoringOM\Design\WorkflowLayouts.cs (5)
488
Point delta = new Point(logicalPoint.X - pageLayoutData.ViewablePageBounds.
Left
, logicalPoint.Y - pageLayoutData.ViewablePageBounds.Top);
489
logicalPoint = new Point(pageLayoutData.LogicalPageBounds.
Left
+ delta.X, pageLayoutData.LogicalPageBounds.Top + delta.Y);
503
Point delta = new Point(logicalPoint.X - pageLayoutData.LogicalPageBounds.
Left
, logicalPoint.Y - pageLayoutData.LogicalPageBounds.Top);
504
logicalPoint = new Point(pageLayoutData.ViewablePageBounds.
Left
+ delta.X, pageLayoutData.ViewablePageBounds.Top + delta.Y);
690
graphics.DrawRectangle(ambientTheme.ForegroundPen, pageLayoutData.ViewablePageBounds.
Left
- 3, pageLayoutData.ViewablePageBounds.Top - 3, pageLayoutData.ViewablePageBounds.Width + 6, pageLayoutData.ViewablePageBounds.Height + 6);
AuthoringOM\Design\WorkflowPrinting.cs (4)
149
graphics.TranslateTransform(boundingRectangle.
Left
- pageOffset.X, boundingRectangle.Top - pageOffset.Y);
275
layoutRectangle.X = headerFooterPrintData.PageBoundsWithoutMargin.
Left
;
280
layoutRectangle.X = headerFooterPrintData.PageBoundsWithoutMargin.
Left
+ ((headerFooterPrintData.PageBoundsWithoutMargin.Width - layoutRectangle.Width) / 2); //align to the middle
285
layoutRectangle.X = headerFooterPrintData.PageBoundsWithoutMargin.
Left
+ (headerFooterPrintData.PageBoundsWithoutMargin.Width - layoutRectangle.Width); //align to the right corner
AuthoringOM\Design\WorkflowView.cs (9)
1742
if (!clientRectangle.Contains(new Point(rect.
Left
, clientRectangle.Top)) || !clientRectangle.Contains(new Point(rect.Right, clientRectangle.Top)))
1745
scrollDelta.Width = (rect.
Left
+ rect.Width / 2) - (clientRectangle.
Left
+ clientRectangle.Width / 2);
1746
else if (rect.
Left
< clientRectangle.
Left
)
1747
scrollDelta.Width = (rect.
Left
- clientRectangle.
Left
);
1752
if (!clientRectangle.Contains(new Point(clientRectangle.
Left
, rect.Top)) || !clientRectangle.Contains(new Point(clientRectangle.
Left
, rect.Bottom)))
System.WorkflowServices (12)
System\Workflow\Activities\Design\GradientPanel.cs (8)
90
Brush glossBrush = new LinearGradientBrush(new Point(frameRect.
Left
, frameRect.Top), new Point(frameRect.
Left
, frameRect.Top + glossHeight + 1), Color.FromArgb(120, 255, 255, 255), Color.FromArgb(60, 255, 255, 255)); // SolidBrush(Color.FromArgb(32, 255, 255, 255));
91
Brush frameBrush = new LinearGradientBrush(new Point(frameRect.
Left
, frameRect.Top), new Point(frameRect.
Left
, frameRect.Bottom), BaseColor, LightingColor);
132
Rectangle arc = new Rectangle(frame.
Left
, frame.Top, diameter, diameter);
138
arc.X = frame.
Left
;
148
Rectangle arc = new Rectangle(frame.
Left
, frame.Top, diameter, diameter);
152
path.AddLine(new Point(frame.Right, frame.Top + glossHeight), new Point(frame.
Left
, frame.Top + glossHeight));
System\Workflow\ComponentModel\Design\HighlightOverlayGlyph.cs (4)
50
Brush frameBrush = new LinearGradientBrush(new Point(frameRect.
Left
, frameRect.Top), new Point(frameRect.
Left
, frameRect.Bottom), BaseColor, LightingColor);
88
Rectangle arc = new Rectangle(frame.
Left
, frame.Top, diameter, diameter);
94
arc.X = frame.
Left
;