21 writes to top
UIAutomationClientSideProviders (21)
MS\Internal\AutomationProxies\Accessible.cs (1)
1290acc.accLocation(out rect.left, out rect.top, out rect.right/*width*/, out rect.bottom/*height*/, idChild );
MS\Internal\AutomationProxies\WindowsListView.cs (1)
1492itemRectangle.top = subItem;
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (3)
491rcGroup.top -= GetGroupHeaderHeight(); 699rect.top = isCollapsed ? NativeMethods.LVGGR_HEADER : NativeMethods.LVGGR_GROUP; 722groupRc.top = item.top;
MS\Internal\AutomationProxies\WindowsListViewGroupSubsetLink.cs (1)
75rect.top = NativeMethods.LVGGR_SUBSETLINK;
MS\Internal\AutomationProxies\WindowsListViewItem.cs (1)
862listViewRect.top = headerRect.bottom;
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (8)
326rc.top = sbi.rcScrollBar.top; 333rc.top = rc.bottom; 338rc.top = rc.bottom = sbi.rcScrollBar.top + sizeArrow.cy; 345rc.top = rc.bottom = sbi.rcScrollBar.top + sizeArrow.cy; 353rc.top = sbi.rcScrollBar.top + sizeArrow.cy; 357rc.top = rc.bottom = sbi.rcScrollBar.top + sizeArrow.cy; 362rc.top = sbi.rcScrollBar.bottom - sizeArrow.cy; 396rc.top = sbi.rcScrollBar.top;
MS\Internal\AutomationProxies\WindowsSlider.cs (2)
457rcChannel.left = rcChannel.right = rcChannel.top = rcChannel.bottom = 1000; 469rcThumb.left = rcThumb.right = rcThumb.top = rcThumb.bottom = 1000;
MS\Internal\AutomationProxies\WindowsStatusBar.cs (1)
352info.rc.top = (int)rc.Top;
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
603updownRect.top = updownRect.top + height / 2;
MS\Win32\NativeMethods.cs (2)
1179this.top = top; 1187this.top = (int)rc.Top;
93 references to top
UIAutomationClientSideProviders (93)
MS\Internal\AutomationProxies\Accessible.cs (5)
1054if (rect1.top != rect2.top) 1306rect.bottom += rect.top; // convert height to bottom 1461|| loc.top != ownLoc.top
MS\Internal\AutomationProxies\ClickablePoint.cs (3)
205_top = rc.top; 249if ((rc.right - rc.left) <= 0 || (rc.bottom - rc.top) <= 0) 258int y = (rc.top + rc.bottom) / 2;
MS\Internal\AutomationProxies\Misc.cs (9)
242NativeMethods.Win32Point leftTop = new NativeMethods.Win32Point(rc.left, rc.top); 1252return new Rect(left, ti.rcTitleBar.top, right - left, ti.rcTitleBar.bottom - ti.rcTitleBar.top); 1368return x >= rc.left && x < rc.right && y >= rc.top && y < rc.bottom; 1385return x >= rc.left && x < rc.right && y >= rc.top && y < rc.bottom; 2031rects[i] = new Rect(leftEdge, tiDL.rcTitleBar.top, buttonWidth, buttonHeight); 2047rects[i] = new Rect(leftEdge, tiDL.rcTitleBar.top, buttonWidth, buttonHeight); 2086rects[i] = new Rect(ti.rgrect[i].left, ti.rgrect[i].top, ti.rgrect[i].right - ti.rgrect[i].left, ti.rgrect[i].bottom - ti.rgrect[i].top);
MS\Internal\AutomationProxies\ProxyHwnd.cs (1)
488return x >= rc.left && x < rc.right && y >= rc.top && y < rc.bottom;
MS\Internal\AutomationProxies\ProxySimple.cs (1)
599pt.y = (rcItem.bottom - 1 + rcItem.top) / 2;
MS\Internal\AutomationProxies\WindowsEditBox.cs (5)
367clientLocation.y = Math.Max(clientLocation.y, clientRect.top); 567return new Rect(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top); 602NativeMethods.Win32Point ptStart = new NativeMethods.Win32Point((int)(rect.left + size.cx / 4), (int)(rect.top + size.cy / 4)); 727linePerPage = (rect.bottom - rect.top) / size.cy;
MS\Internal\AutomationProxies\WindowsGrip.cs (1)
91if (client.left < 0 && client.top < 0 )
MS\Internal\AutomationProxies\WindowsHyperlink.cs (1)
451int height = BoundingRect.bottom - BoundingRect.top;
MS\Internal\AutomationProxies\WindowsListBox.cs (1)
294int ret = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_ITEMFROMPOINT, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x - listboxrect.left, y - listboxrect.top));
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (4)
706if (rc1.top >= rc2.top) 727return (rc1.top != rc2.top) ? NewItemInDimension.New : NewItemInDimension.Same;
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (6)
623if (rc1.left < rc2.left || rc1.top < rc2.top) 627else if (rc1.left != rc2.left || rc1.top != rc2.top) 722groupRc.top = item.top; 816return new NativeMethods.Win32Rect(sbi.rcScrollBar.left, sbi.rcScrollBar.top, sbi.rcScrollBar.right, sbi.rcScrollBar.bottom);
MS\Internal\AutomationProxies\WindowsListViewItem.cs (1)
951clickPoint.y = (itemRectangle.top + itemRectangle.bottom) / 2;
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (4)
167return new NativeMethods.Win32Rect (controlRectangle.left, rc.top, right, rc.bottom); 189return new NativeMethods.Win32Rect (selectable.right, wholeItem.top, wholeItem.right, wholeItem.bottom); 193return new NativeMethods.Win32Rect (wholeItem.left, wholeItem.top, selectable.left, wholeItem.bottom); 248NativeMethods.Win32Point pt = new NativeMethods.Win32Point((rc.left + rc.right) / 2, (rc.top + rc.bottom) / 2);
MS\Internal\AutomationProxies\WindowsMenu.cs (4)
811int buttonHeight = mbi.rcBar.bottom - mbi.rcBar.top; 828return new Rect(leftEdge, mbi.rcBar.top, buttonWidth, buttonHeight); 1255int buttonHeight = mbi.rcBar.bottom - mbi.rcBar.top; 1274return new Rect(leftEdge, mbi.rcBar.top, buttonWidth, buttonHeight);
MS\Internal\AutomationProxies\WindowsRebar.cs (4)
130y >= rebarRect.top && y <= rebarRect.bottom) 133y = y - rebarRect.top; 413return new Rect (rectW32.left, rectW32.top, rectW32.bottom - rectW32.top, rectW32.right - rectW32.left);
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
175Rect clientRect = new Rect(w32rect.left, w32rect.top, w32rect.right - w32rect.left, w32rect.bottom - w32rect.top);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (3)
151long area = (sbi.rcScrollBar.right - sbi.rcScrollBar.left) * (sbi.rcScrollBar.bottom - sbi.rcScrollBar.top); 457long area = (sbi.rcScrollBar.right - sbi.rcScrollBar.left) * (sbi.rcScrollBar.bottom - sbi.rcScrollBar.top); 470fThumbVisible = (sbi.rcScrollBar.bottom - sbi.rcScrollBar.top >= 5 * sizeArrow.cy / 2);
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (13)
263long area = (sbi.rcScrollBar.right - sbi.rcScrollBar.left) * (sbi.rcScrollBar.bottom - sbi.rcScrollBar.top); 316bool fThumbVisible = sbi.rcScrollBar.bottom - sbi.rcScrollBar.top >= 5 * sizeArrow.cy / 2; 317if (sbi.rcScrollBar.bottom - sbi.rcScrollBar.top < 2 * sizeArrow.cy) 320sizeArrow.cy = (sbi.rcScrollBar.bottom - sbi.rcScrollBar.top) / 2; 326rc.top = sbi.rcScrollBar.top; 327rc.bottom = sbi.rcScrollBar.top + sizeArrow.cy; 338rc.top = rc.bottom = sbi.rcScrollBar.top + sizeArrow.cy; 345rc.top = rc.bottom = sbi.rcScrollBar.top + sizeArrow.cy; 352rc.bottom = rc.top; 353rc.top = sbi.rcScrollBar.top + sizeArrow.cy; 357rc.top = rc.bottom = sbi.rcScrollBar.top + sizeArrow.cy; 389NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect(sbi.xyThumbTop, sbi.rcScrollBar.top, sbi.xyThumbBottom, sbi.rcScrollBar.bottom); 396rc.top = sbi.rcScrollBar.top;
MS\Internal\AutomationProxies\WindowsSlider.cs (12)
498return new Rect (rcChannel.left, rcChannel.top, rcThumb.left - rcChannel.left, rcChannel.bottom - rcChannel.top); 501return new Rect (rcThumb.left, rcThumb.top, rcThumb.right - rcThumb.left, rcThumb.bottom - rcThumb.top); 504return new Rect (rcThumb.right, rcChannel.top, rcChannel.right - rcThumb.right, rcChannel.bottom - rcChannel.top); 509int dx = rcChannel.bottom - rcChannel.top; 515return new Rect (rcChannel.left, rcChannel.top, dx, rcThumb.top - rcChannel.top); 518return new Rect (rcThumb.left, rcThumb.top, rcThumb.right - rcThumb.left, rcThumb.bottom - rcThumb.top);
MS\Internal\AutomationProxies\WindowsStatusBar.cs (2)
371if (rc.left == info->rc.left && rc.top == info->rc.top && rc.right == info->rc.right && rc.bottom == info->rc.bottom)
MS\Internal\AutomationProxies\WindowsSysHeader.cs (2)
728IntPtr center = NativeMethods.Util.MAKELPARAM (rectW32.left + ((rectW32.right - rectW32.left) / 2), rectW32.top + ((rectW32.bottom - rectW32.top) / 2));
MS\Internal\AutomationProxies\WindowsTreeView.cs (1)
1467NativeMethods.Win32Point pt = new NativeMethods.Win32Point(((rectItem.left + rectItem.right) / 2), ((rectItem.top + rectItem.bottom) / 2));
MS\Internal\AutomationProxies\WindowsUpDown.cs (5)
542int y = (int) rc.Top - updownRect.top + (int) rc.Height / 2; 588int height = (updownRect.bottom - updownRect.top); 589updownRect.bottom = updownRect.top + height / 2; 602int height = (updownRect.bottom - updownRect.top); 603updownRect.top = updownRect.top + height / 2;
MS\Win32\NativeMethods.cs (3)
1196return left >= right || top >= bottom; 1220return new Rect(rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top);