426 references to Top
System.Drawing (1)
misc\GDI\NativeMethods.cs (1)
180
this.top = r.
Top
;
System.Web.DataVisualization (10)
Common\General\ChartGraphics.cs (10)
2434
this.DrawLine(markPen, absPositionRounded.Left, absPositionRounded.
Top
, absPositionRounded.Left, absPositionRounded.Bottom);
2435
this.DrawLine(markPen, absPositionRounded.Right, absPositionRounded.
Top
, absPositionRounded.Right, absPositionRounded.Bottom);
2439
this.DrawLine(markPen, absPositionRounded.Left, absPositionRounded.
Top
, absPositionRounded.Right, absPositionRounded.
Top
);
2460
(axis.AxisPosition == AxisPosition.Top) ? absPositionRounded.
Top
: absPositionRounded.Bottom,
2474
absPositionRounded.
Top
,
2476
absPositionRounded.
Top
);
2483
(axis.AxisPosition == AxisPosition.Top) ? absPositionRounded.
Top
: absPositionRounded.Bottom,
2584
leftLine[0].Y = absPositionRounded.
Top
;
2585
rightLine[0].Y = absPositionRounded.
Top
;
System.Windows.Forms (174)
misc\GDI\NativeMethods.cs (1)
180
this.top = r.
Top
;
misc\GDI\WindowsGraphics2.cs (2)
127
DrawEllipse(pen, brush, bounds.Left, bounds.
Top
, bounds.Right, bounds.Bottom);
565
adjustedBounds.Y = adjustedBounds.
Top
+ adjustedBounds.Height / 2 - textHeight / 2;
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (2)
446
Point p1 = new Point(r.Right - 1, r.
Top
); // upper inner right.
447
Point p2 = new Point(r.Left , r.
Top
); // upper 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);
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
);
110
g.DrawLine(highlight, r.Left, r.
Top
, r.Left, r.Bottom);
114
g.DrawLine(buttonShadow, r.Right - 2, r.
Top
+ 1, r.Right - 2, r.Bottom - 2);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (7)
180
wg.DrawLine(high, r.Right-1 , r.
Top
, r.Right-1, r.Bottom);
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
);
186
wg.DrawLine(face, r.Right - 2, r.
Top
+ 1, r.Right - 2, r.Bottom - 1);
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)
4618
int top = parentRect.
Top
+ _owningComboBox.ItemHeight * currentIndex;
6065
Point middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.
Top
+ dropDownRect.Height / 2);
6103
Rectangle topOwnerDrawArea = new Rectangle(0,0,comboBox.Width, innerBorder.
Top
);
winforms\Managed\System\WinForms\Control.cs (3)
9747
e.Graphics.DrawLine(pen, clientRectangle.Left, clientRectangle.
Top
,
9750
clientRectangle.Right, clientRectangle.
Top
);
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)
341
int borderAndPaddingHeights = borderWidthsRect.
Top
+ borderWidthsRect.Height + cellStyle.Padding.Vertical;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (6)
763
int borderAndPaddingHeights = borderWidthsRect.
Top
+ borderWidthsRect.Height + cellStyle.Padding.Vertical;
1322
checkBoxY = valBounds.
Top
+ (valBounds.Height - checkBoxSize.Height) / 2;
1326
checkBoxY = valBounds.
Top
;
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)
539
int borderAndPaddingHeights = borderWidthsRect.
Top
+ borderWidthsRect.Height + cellStyle.Padding.Vertical;
967
valBounds.
Top
+
976
valBounds.
Top
+
1012
valBounds.
Top
+ (valBounds.Height-sortGlyphHeight)/2);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (9)
1373
int borderAndPaddingHeights = borderWidthsRect.
Top
+ borderWidthsRect.Height + cellStyle.Padding.Vertical;
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);
2248
valBounds.
Top
,
2255
valBounds.
Top
+ 1,
2263
valBounds.
Top
+ 2,
2441
Point middle = new Point(dropRect.Left + dropRect.Width / 2, dropRect.
Top
+ dropRect.Height / 2);
2463
dropRect.
Top
+ (dropRect.Height + nonXPTriangleHeight) / 2);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
477
int borderAndPaddingHeights = borderWidthsRect.
Top
+ borderWidthsRect.Height + cellStyle.Padding.Vertical;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
664
int borderAndPaddingHeights = borderWidthsRect.
Top
+ borderWidthsRect.Height + cellStyle.Padding.Vertical;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (22)
4929
rowY = this.layout.ColumnHeaders.
Top
;
5688
Rectangle rectInsertionBar = new Rectangle(0, this.layout.ColumnHeaders.
Top
, DATAGRIDVIEW_insertionBarWidth, this.layout.ColumnHeaders.Height);
8668
if (mouseY >= rectScrollingArea.
Top
&& mouseY <= rectScrollingArea.Bottom)
8705
if (mouseY < rectScrollingArea.
Top
)
8714
yOffset = mouseY - rectScrollingArea.
Top
; // yOffset strictly negative
8768
hti = HitTest(mouseX, rectScrollingArea.
Top
);
8794
hti = HitTest(mouseX, rectScrollingArea.
Top
);
8822
mouseY = rectScrollingArea.
Top
+1;
8826
hti = HitTest(mouseX, rectScrollingArea.
Top
);
8868
mouseY = rectScrollingArea.
Top
+1;
8883
if (mouseY < rectScrollingArea.
Top
)
8898
yOffset = mouseY - rectScrollingArea.
Top
; // yOffset strictly negative
8903
if (mouseY < this.layout.Data.
Top
)
8905
mouseY = this.layout.Data.
Top
+1;
9410
hti.rowStart = this.layout.TopLeftHeader.
Top
;
9428
else if (this.layout.TopLeftHeader.
Top
+ this.layout.TopLeftHeader.Height - y < DATAGRIDVIEW_rowSizingHotZone)
9434
hti.mouseBarOffset = this.layout.TopLeftHeader.
Top
+ this.layout.TopLeftHeader.Height - y - 1;
9452
hti.rowStart = this.layout.ColumnHeaders.
Top
;
10126
top = this.GetRowDisplayRectangle(this.displayedBandsInfo.FirstDisplayedScrollingRow, true /*cutOverflow*/).
Top
;
10131
top = rowDisplayRect.
Top
;
19831
Debug.Assert(bounds.
Top
== 0);
22470
if (this.dataGridViewOper[DATAGRIDVIEWOPER_trackKeyboardColResize] && this.resizeClipRectangle.Contains(x, this.resizeClipRectangle.
Top
))
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (1)
666
int borderAndPaddingHeights = borderWidthsRect.
Top
+ borderWidthsRect.Height + cellStyle.Padding.Vertical;
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
439
int borderAndPaddingHeights = borderWidthsRect.
Top
+ borderWidthsRect.Height + cellStyle.Padding.Vertical;
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (1)
185
int borderAndPaddingHeights = borderWidthsRect.
Top
+ borderWidthsRect.Height + cellStyle.Padding.Vertical;
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (10)
209
clipMiddle.Height -= (textBounds.Bottom - boxBounds.
Top
);
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);
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
);
241
g.DrawLine(light, bounds.Width - 1, bounds.
Top
, bounds.Width - 1, bounds.Height - 1);
242
g.DrawLine(dark, bounds.Width - 2, bounds.
Top
, bounds.Width - 2, bounds.Height - 2);
284
int boxTop = bounds.
Top
+ font.Height / 2;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (3)
209
top = Math.Max(Math.Abs(top), Math.Abs(cachedBounds.
Top
));
214
top = top > 0 ? top : element.Bounds.
Top
;
564
anchorInfo.Top = element.Bounds.
Top
;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (4)
482
Debug.Assert(region1.Bottom == region2.
Top
, "Adjacency error.");
487
Debug.Assert(region2.Bottom == region1.
Top
, "Adjacency error.");
513
int top = (specified & AnchorStyles.Top) != 0 ? substitutionBounds.
Top
: originalBounds.
Top
;
winforms\Managed\System\WinForms\ListView.cs (4)
3133
y = Math.Max(itemBounds.
Top
, iconBounds.
Top
) - 1;
3136
y = Math.Max(itemBounds.
Top
, iconBounds.
Top
) + 1;
winforms\Managed\System\WinForms\ListViewItem.cs (3)
1033
return this.ListView.FindNearestItem(searchDirection, r.Left, r.
Top
);
1037
return this.ListView.FindNearestItem(searchDirection, r.Left, r.
Top
);
1039
return this.ListView.FindNearestItem(searchDirection, r.Right, r.
Top
);
winforms\Managed\System\WinForms\NativeMethods.cs (2)
3092
this.top = r.
Top
;
6474
this.top = r.
Top
;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
5851
newBounds.Y = dragBaseRect.
Top
+ delta;
winforms\Managed\System\WinForms\ToolStrip.cs (10)
2354
if (!down && otherItem.Bounds.Bottom > selectedItem.Bounds.
Top
) {
2358
else if (down && otherItem.Bounds.
Top
< selectedItem.Bounds.Bottom) {
2365
Point otherItemMidLocation = new Point(otherItem.Bounds.X + otherItem.Width/2, (down)? otherItem.Bounds.
Top
: otherItem.Bounds.Bottom);
2425
else if ((!down && tanWinner.Bounds.Bottom <= hypotenuseWinner.Bounds.
Top
)
2426
||(down && tanWinner.Bounds.
Top
> hypotenuseWinner.Bounds.Bottom)) {
4292
gripRectangle.Y = Math.Max(0,displayRect.
Top
- Grip.Margin.Top);
4306
gripRectangle.Y = displayRect.
Top
- (Grip.GripThickness + Grip.Margin.Bottom);
4446
bool verticallyContained = clientBounds.Contains(clientBounds.X, item.Bounds.
Top
) &&
5482
insertionRect = new Rectangle(owner.Margin.Left, item.Bounds.
Top
, owner.Width - (owner.Margin.Horizontal) -1, ToolStrip.insertionBeamWidth);
5562
RelativeLocation relativeLocation = (check.Y <= (orig.
Top
+ heightUnit)) ?
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 (23)
520
if (!displayRect.Contains(displayRect.X, nextItem.Bounds.
Top
)
524
if (displayRect.Y > nextItem.Bounds.
Top
) {
525
delta = nextItem.Bounds.
Top
- displayRect.Y;
533
if ( (this.Items[index].Visible && displayRect.Contains(displayRect.X, this.Items[index].Bounds.
Top
- delta))
545
delta += (this.Items[index].Bounds.Bottom - delta) - displayRect.
Top
;
629
int delta = this.Items[0].Bounds.
Top
- this.DisplayRectangle.
Top
;
659
int alreadyScrolled = displayRectangle.
Top
- this.Items[0].Bounds.
Top
;
669
if (displayRectangle.Contains(displayRectangle.X, adjustedLastItemBounds.
Top
)
677
deltaToScroll += this.Items[i + 1].Bounds.
Top
- this.Items[i].Bounds.
Top
;
690
if (displayRectangle.Contains(displayRectangle.X, adjustedLastItemBounds.
Top
)
698
deltaToScroll -= this.Items[i].Bounds.
Top
- this.Items[i - 1].Bounds.
Top
;
707
this.scrollAmount = this.DisplayRectangle.
Top
- this.Items[0].Bounds.
Top
;
739
delta = itemTop.Bounds.
Top
- itemBottom.Bounds.
Top
;
751
delta = itemBottom.Bounds.
Top
- itemTop.Bounds.
Top
;
814
if (this.indexOfFirstDisplayedItem == -1 && displayRectangle.Contains(displayRectangle.X, item.Bounds.
Top
)) {
818
minY = Math.Min(minY, item.Bounds.
Top
);
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (1)
323
g.DrawLine(foreColorPen, startX, bounds.
Top
, startX, bounds.Bottom - 1);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (6)
1133
g.FillRectangle(b, overflowBoundsFill.Width - 3, overflowBoundsFill.
Top
- 1, 1, 1);
1134
g.FillRectangle(b, overflowBoundsFill.Width - 2, overflowBoundsFill.
Top
- 2, 1, 1);
1147
g.FillRectangle(b, overflowBoundsFill.X, overflowBoundsFill.
Top
- 1, 1, 1);
1313
g.DrawLine(leftPen, startX, bounds.
Top
, startX, bounds.Bottom - 1);
1317
g.DrawLine(rightPen, startX, bounds.
Top
+ 1, startX, bounds.Bottom);
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\ToolStripSplitButton.cs (2)
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 (5)
319
int y = displayRectangle.
Top
;
391
int lastTop = displayRectangle.
Top
;
456
int y = displayRectangle.
Top
;
534
|| (itemBounds.
Top
< displayRectangle.
Top
)) {
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (6)
629
g.DrawLine(leftPen, startX, bounds.
Top
, startX, bounds.Bottom);
633
g.DrawLine(rightPen, startX, bounds.
Top
, startX, bounds.Bottom);
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);
672
g.DrawLine(rightPen, bounds.Right-1, bounds.
Top
, bounds.Right -1, bounds.Bottom-1);
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
873
g.FillRectangle(b, 0, 0, this.Width, clientRect.
Top
); // top border
winforms\Managed\System\WinForms\ToolTip.cs (6)
1573
visibleRect.top = (r.top < screen.WorkingArea.
Top
) ? screen.WorkingArea.
Top
:r.top;
1757
int pointY = (toolRectangle.
Top
+ toolRectangle.Bottom) / 2;
1799
int centeredY = toolRectangle.
Top
+ toolRectangle.Height / 2 - height / 2; // tooltip will be aligned with tool horizontally
1802
possibleLocations[TOP_LOCATION_INDEX] = new Rectangle(centeredX, toolRectangle.
Top
- height, 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);
813
Rectangle clipRight = new Rectangle(bounds.Right - border, bounds.
Top
, border, bounds.Height);
1118
/*y*/clientArea.
Top
-borderFixup,
winforms\Managed\System\WinForms\WinFormsUtils.cs (5)
126
else if (bounds.
Top
< constrainingBounds.
Top
) {
128
bounds.Y = constrainingBounds.
Top
;
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 (10)
Common\General\ChartGraphics.cs (10)
2434
this.DrawLine(markPen, absPositionRounded.Left, absPositionRounded.
Top
, absPositionRounded.Left, absPositionRounded.Bottom);
2435
this.DrawLine(markPen, absPositionRounded.Right, absPositionRounded.
Top
, absPositionRounded.Right, absPositionRounded.Bottom);
2439
this.DrawLine(markPen, absPositionRounded.Left, absPositionRounded.
Top
, absPositionRounded.Right, absPositionRounded.
Top
);
2460
(axis.AxisPosition == AxisPosition.Top) ? absPositionRounded.
Top
: absPositionRounded.Bottom,
2474
absPositionRounded.
Top
,
2476
absPositionRounded.
Top
);
2483
(axis.AxisPosition == AxisPosition.Top) ? absPositionRounded.
Top
: absPositionRounded.Bottom,
2584
leftLine[0].Y = absPositionRounded.
Top
;
2585
rightLine[0].Y = absPositionRounded.
Top
;
System.Workflow.Activities (21)
Designers\ConditionalDesigner.cs (5)
101
diamondRectangle.Y = bounds.
Top
+ TitleHeight + (compositeDesignerTheme.ConnectorSize.Height * 3 / 2 - diamondRectangle.Height) / 2 + 1;
121
new Point(rectangle.Left + rectangle.Width / 2, rectangle.
Top
),
122
new Point(rectangle.Right - 1, rectangle.
Top
+ rectangle.Height / 2),
124
new Point(rectangle.Left, rectangle.
Top
+ rectangle.Height / 2),
125
new Point(rectangle.Left + rectangle.Width / 2, rectangle.
Top
)
Designers\ListenDesigner.cs (1)
81
roundRectangle.Y = bounds.
Top
+ TitleHeight + (compositeDesignerTheme.ConnectorSize.Height * 3 / 2 - roundRectangle.Height) / 2;
Designers\StateDesigner.cs (1)
803
Point point = new Point(midHorz, bounds.
Top
);
Designers\StateDesigner.Layouts.cs (1)
1378
bounds.
Top
+ ambientTheme.SelectionSize.Height);
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)
58
int top = rectangle.
Top
;
65
if (top < bounds.
Top
)
66
top = bounds.
Top
;
Designers\WhileDesigner.cs (3)
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);
51
connectionPoint = new Point(bounds.Left + bounds.Width / 2 + e.AmbientTheme.Margin.Width / 2, bounds.
Top
+ e.AmbientTheme.Margin.Height / 2);
Rules\Design\Dialogs\IntellisenseTextBox.cs (1)
450
this.listBoxAutoComplete.Size = new Size(this.listBoxAutoComplete.Width, topLevelControlSize.Height - listboxRectangle.
Top
);
System.Workflow.ComponentModel (201)
AuthoringOM\Design\ActivityDesigner.cs (9)
542
textRectangle.Y = bounds.
Top
+ (bounds.Height - this.textSize.Height) / 2;
565
imageRectangle.Y = bounds.
Top
+ (bounds.Height - DesignerTheme.ImageSize.Height) / 2;
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);
953
hitRectangle = new Rectangle(bounds.Right, bounds.
Top
, bounds.Width - bounds.Width, bounds.Height);
1180
connections.Add(new Point(bounds.Left, bounds.
Top
+ bounds.Height / 2));
1183
connections.Add(new Point(bounds.Left + bounds.Width / 2, bounds.
Top
));
1186
connections.Add(new Point(bounds.Right, bounds.
Top
+ bounds.Height / 2));
3043
smartTagRectangle.Y = rectangle.
Top
- margin.Height / 2;
AuthoringOM\Design\ActivityPreviewDesigner.cs (2)
800
return new Point(dropConnector.Left + dropConnector.Width / 2, dropConnector.
Top
+ dropConnector.Height / 2);
991
Point configErrorLocation = new Point(rectangle.Right - configErrorSize.Width / 2, rectangle.
Top
- configErrorSize.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
) });
1701
designerEdgeCover.Add(DesignerEdges.Right, new Point[] { new Point(bounds.Right, bounds.
Top
), new Point(bounds.Right, bounds.Bottom) });
1820
begin.Y = Math.Min(Math.Max(begin.Y, enclosingRectangle.
Top
+ 1), enclosingRectangle.Bottom - 1);
2791
AddCover(new ConnectorSegment(new Point(rectangle.Left, rectangle.
Top
), new Point(rectangle.Left, rectangle.Bottom)));
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
)));
AuthoringOM\Design\DesignerHelpers.cs (91)
220
rectangle.Y = destination.
Top
;
224
rectangle.Y = destination.
Top
+ destination.Height / 2 - rectangle.Height / 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);
308
graphics.DrawLine(darkPen, bounds.Right - 1, bounds.Bottom - 1, bounds.Right - 1, bounds.
Top
+ 1);
310
graphics.DrawLine(darkdarkPen, bounds.Right, bounds.Bottom, bounds.Right, bounds.
Top
);
342
((gridCoOrdY + ambientTheme.GridSize.Height / 2) >= viewableRectangle.
Top
&& (gridCoOrdY + ambientTheme.GridSize.Height / 2) <= viewableRectangle.Bottom))
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
);
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);
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
);
831
pagePaths[0].AddLine(pageBounds.Right, pageBounds.
Top
, pageBounds.Right, 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
);
846
pagePaths[0].AddLine(pageBounds.Right, pageBounds.
Top
, pageBounds.Right, pageBounds.Bottom);
850
pagePaths[0].AddLine(pageBounds.Left, pageBounds.Bottom - pageFoldSize, pageBounds.Left, pageBounds.
Top
);
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);
868
pagePaths[0].AddLine(pageBounds.Left, pageBounds.Bottom, pageBounds.Left, pageBounds.
Top
);
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);
885
pagePaths[0].AddLine(pageBounds.Left, pageBounds.Bottom, pageBounds.Left, pageBounds.
Top
);
1038
if (!NativeMethods.MoveToEx(this.hdc, gridCoOrd, viewableRectangle.
Top
+ 1, null))
1051
if (!NativeMethods.MoveToEx(this.hdc, gridCoOrd + gridUnit.Width / 2, viewableRectangle.
Top
+ 1, null))
1065
if (gridCoOrd >= viewableRectangle.
Top
)
1074
if (showMinorGrid && (gridCoOrd + gridUnit.Height / 2) >= viewableRectangle.
Top
&& (gridCoOrd + gridUnit.Height / 2) <= viewableRectangle.Bottom)
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
) }));
1853
distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new Point(rect.Right, rect.
Top
), 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
)));
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)));
AuthoringOM\Design\DesignerWidgets.cs (31)
336
this.itemStrip.Location = new Point(leftScrollButtonBounds.Right, leftScrollButtonBounds.
Top
);
716
itemRectangle.Y = bounds.
Top
+ this.margin.Height;
721
itemRectangle.Y = bounds.
Top
+ (itemIndex * this.itemSize.Height) + ((itemIndex + 1) * this.margin.Height);
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);
1307
if (this.workingRectangle.
Top
> bounds.
Top
)
1308
fittingOffset.Height += this.workingRectangle.
Top
- bounds.
Top
;
2261
Point screenCoOrd = this.parentControl.PointToScreen(new Point(this.inplaceTipRectangle.Left, this.inplaceTipRectangle.
Top
));
2372
toolInfo.rect.top = rectangle.
Top
;
2538
rectangles[j].Y = stripRectangle.
Top
+ itemMargin.Height / 2;
2543
rectangles[j] = new Rectangle(rectangles[j].Left, rectangles[j].
Top
, stripRectangle.Right - rectangles[j].Left, rectangles[j].Height);
2565
itemRectangle.Y = stripRectangle.
Top
+ itemMargin.Height;
2741
imageRectangle.Y = itemRectangle.
Top
+ 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);
3246
descRectanglePos.Y = this.bounds.
Top
+ maxDescHeight / 2 - this.previewModeDescRectangle.Height / 2;
3251
previewModeBitmapPos.Y = this.bounds.
Top
+ maxDescHeight / 2 - this.previewModeButtonRectangle.Height / 2;
3261
location.Y = this.canvasBounds.
Top
+ this.canvasBounds.Height / 2 - PreviewDesigner.Size.Height / 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
);
3432
graphics.DrawLine(SystemPens.ControlLight, canvasRect.Right, canvasRect.
Top
, 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
);
3467
destnRectangle.Y = this.canvasBounds.
Top
+ this.canvasBounds.Height / 2 - destnRectangle.Height / 2;
AuthoringOM\Design\FreeFormDesigner.cs (11)
792
newLocation.Y = Math.Min(newLocation.Y, childRectangle.
Top
);
825
size.Height += Math.Max(bounds.
Top
- childRectangle.
Top
, 0);
936
bounds.Y = Math.Min(minRectangle.
Top
, e.Bounds.
Top
);
938
bounds.Height = Math.Max(minRectangle.Bottom - bounds.
Top
, e.Bounds.Bottom - bounds.
Top
);
1117
leftTop.Y = (activityDesigner.Bounds.
Top
< leftTop.Y) ? activityDesigner.Bounds.
Top
: leftTop.Y;
1130
leftTop.Y = (connector.Bounds.
Top
< leftTop.Y) ? connector.Bounds.
Top
: leftTop.Y;
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (2)
52
Point configErrorLocation = new Point(designer.Bounds.Right - configErrorSize.Width - margin.Width / 2, designer.Bounds.
Top
- configErrorSize.Height + margin.Height);
84
graphics.DrawRectangle(SystemPens.ControlDarkDark, activatedBounds.Left, activatedBounds.
Top
, activatedBounds.Width - 1, activatedBounds.Height - 1);
AuthoringOM\Design\Glyphs\SelectionGlyph.cs (4)
56
grabHandles[1] = new Rectangle(new Point(selectionRect.Left + (selectionRect.Width - grabHandleSize.Width) / 2, selectionRect.
Top
), grabHandleSize);
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);
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)
199
if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Right, designerBounds.
Top
), new Point(designerBounds.Right, designerBounds.Bottom) })) <= selectionSize.Width + 1)
302
designerBounds.Height += (designerBounds.
Top
- y);
AuthoringOM\Design\ParallelActivityDesigner.cs (4)
300
dropTargets[i + 1].Location = new Point(designerBounds1.Right + (designerBounds2.Left - designerBounds1.Right) / 2 - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, designerBounds1.
Top
);
337
int parallelConnectorTop = bounds.
Top
;
414
int parallelConnectorTop = bounds.
Top
;
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 (6)
164
helpTextRectangle.Y = connectors[0].
Top
+ connectors[0].Height / 2 - this.helpTextSize.Height / 2;
208
connections.Add(new Point(startDesignerBounds.Left + startDesignerBounds.Width / 2, startDesignerBounds.
Top
));
238
connections.Add(new Point(endDesignerBounds.Left + endDesignerBounds.Width / 2, endDesignerBounds.
Top
));
411
DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, new Point[] { new Point(connectors[0].X + connectors[0].Width / 2, connectors[0].Y + 2), new Point(connectors[0].X + connectors[0].Width / 2, helpTextRectangle.
Top
- 2) }, compositeDesignerTheme.ConnectorStartCap, LineAnchor.None);
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)
120
bounds.Y = (this.isHeader) ? designerBounds.
Top
: designerBounds.Bottom - bounds.Height;
141
bounds.Y = (this.isHeader) ? designerBounds.
Top
+ margin.Height : designerBounds.Bottom - margin.Height - this.textSize.Height;
167
bounds.Y = designerBounds.
Top
+ margin.Height;
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (2)
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 (2)
149
graphics.TranslateTransform(boundingRectangle.Left - pageOffset.X, boundingRectangle.
Top
- pageOffset.Y);
293
layoutRectangle.Y = headerFooterPrintData.PageBounds.
Top
+ headerFooterPrintData.HeaderFooterMargins.Top;
AuthoringOM\Design\WorkflowView.cs (8)
1742
if (!clientRectangle.Contains(new Point(rect.Left, clientRectangle.
Top
)) || !clientRectangle.Contains(new Point(rect.Right, clientRectangle.
Top
)))
1752
if (!clientRectangle.Contains(new Point(clientRectangle.Left, rect.
Top
)) || !clientRectangle.Contains(new Point(clientRectangle.Left, rect.Bottom)))
1754
if ((rect.
Top
< clientRectangle.
Top
) || (rect.Height > clientRectangle.Height))
1755
scrollDelta.Height = (rect.
Top
- clientRectangle.
Top
);
1915
menuCommandService.ShowContextMenu(menuID, buttonRect.Right, buttonRect.
Top
);
System.WorkflowServices (9)
System\Workflow\Activities\Design\GradientPanel.cs (7)
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);
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 (2)
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);