21 writes to top
UIAutomationClientsideProviders (21)
MS\Internal\AutomationProxies\Accessible.cs (1)
1329acc.accLocation(out rect.left, out rect.top, out rect.right/*width*/, out rect.bottom/*height*/, idChild );
MS\Internal\AutomationProxies\WindowsListView.cs (1)
1501itemRectangle.top = subItem;
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (3)
505rcGroup.top -= GetGroupHeaderHeight(); 715rect.top = isCollapsed ? NativeMethods.LVGGR_HEADER : NativeMethods.LVGGR_GROUP; 738groupRc.top = item.top;
MS\Internal\AutomationProxies\WindowsListViewGroupSubsetLink.cs (1)
78rect.top = NativeMethods.LVGGR_SUBSETLINK;
MS\Internal\AutomationProxies\WindowsListViewItem.cs (1)
873listViewRect.top = headerRect.bottom;
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (8)
335rc.top = sbi.rcScrollBar.top; 342rc.top = rc.bottom; 347rc.top = rc.bottom = sbi.rcScrollBar.top + sizeArrow.cy; 354rc.top = rc.bottom = sbi.rcScrollBar.top + sizeArrow.cy; 362rc.top = sbi.rcScrollBar.top + sizeArrow.cy; 366rc.top = rc.bottom = sbi.rcScrollBar.top + sizeArrow.cy; 371rc.top = sbi.rcScrollBar.bottom - sizeArrow.cy; 405rc.top = sbi.rcScrollBar.top;
MS\Internal\AutomationProxies\WindowsSlider.cs (2)
473rcChannel.left = rcChannel.right = rcChannel.top = rcChannel.bottom = 1000; 485rcThumb.left = rcThumb.right = rcThumb.top = rcThumb.bottom = 1000;
MS\Internal\AutomationProxies\WindowsStatusBar.cs (1)
366info.rc.top = (int)rc.Top;
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
620updownRect.top = updownRect.top + height / 2;
MS\Win32\NativeMethods.cs (2)
1197this.top = top; 1205this.top = (int)rc.Top;
93 references to top
UIAutomationClientsideProviders (93)
MS\Internal\AutomationProxies\Accessible.cs (5)
1080if (rect1.top != rect2.top) 1345rect.bottom += rect.top; // convert height to bottom 1516|| loc.top != ownLoc.top
MS\Internal\AutomationProxies\ClickablePoint.cs (3)
206_top = rc.top; 250if ((rc.right - rc.left) <= 0 || (rc.bottom - rc.top) <= 0) 259int y = (rc.top + rc.bottom) / 2;
MS\Internal\AutomationProxies\Misc.cs (9)
253NativeMethods.Win32Point leftTop = new NativeMethods.Win32Point(rc.left, rc.top); 1265return new Rect(left, ti.rcTitleBar.top, right - left, ti.rcTitleBar.bottom - ti.rcTitleBar.top); 1381return x >= rc.left && x < rc.right && y >= rc.top && y < rc.bottom; 1398return x >= rc.left && x < rc.right && y >= rc.top && y < rc.bottom; 2044rects[i] = new Rect(leftEdge, tiDL.rcTitleBar.top, buttonWidth, buttonHeight); 2060rects[i] = new Rect(leftEdge, tiDL.rcTitleBar.top, buttonWidth, buttonHeight); 2099rects[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)
504return x >= rc.left && x < rc.right && y >= rc.top && y < rc.bottom;
MS\Internal\AutomationProxies\ProxySimple.cs (1)
610pt.y = (rcItem.bottom - 1 + rcItem.top) / 2;
MS\Internal\AutomationProxies\WindowsEditBox.cs (5)
406clientLocation.y = Math.Max(clientLocation.y, clientRect.top); 632return new Rect(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top); 667NativeMethods.Win32Point ptStart = new NativeMethods.Win32Point((int)(rect.left + size.cx / 4), (int)(rect.top + size.cy / 4)); 792linePerPage = (rect.bottom - rect.top) / size.cy;
MS\Internal\AutomationProxies\WindowsGrip.cs (1)
105if (client.left < 0 && client.top < 0 )
MS\Internal\AutomationProxies\WindowsHyperlink.cs (1)
465int height = BoundingRect.bottom - BoundingRect.top;
MS\Internal\AutomationProxies\WindowsListBox.cs (1)
306int ret = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_ITEMFROMPOINT, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x - listboxrect.left, y - listboxrect.top));
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (4)
715if (rc1.top >= rc2.top) 736return (rc1.top != rc2.top) ? NewItemInDimension.New : NewItemInDimension.Same;
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (6)
638if (rc1.left < rc2.left || rc1.top < rc2.top) 642else if (rc1.left != rc2.left || rc1.top != rc2.top) 738groupRc.top = item.top; 832return new NativeMethods.Win32Rect(sbi.rcScrollBar.left, sbi.rcScrollBar.top, sbi.rcScrollBar.right, sbi.rcScrollBar.bottom);
MS\Internal\AutomationProxies\WindowsListViewItem.cs (1)
962clickPoint.y = (itemRectangle.top + itemRectangle.bottom) / 2;
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (4)
174return new NativeMethods.Win32Rect (controlRectangle.left, rc.top, right, rc.bottom); 196return new NativeMethods.Win32Rect (selectable.right, wholeItem.top, wholeItem.right, wholeItem.bottom); 200return new NativeMethods.Win32Rect (wholeItem.left, wholeItem.top, selectable.left, wholeItem.bottom); 255NativeMethods.Win32Point pt = new NativeMethods.Win32Point((rc.left + rc.right) / 2, (rc.top + rc.bottom) / 2);
MS\Internal\AutomationProxies\WindowsMenu.cs (4)
824int buttonHeight = mbi.rcBar.bottom - mbi.rcBar.top; 841return new Rect(leftEdge, mbi.rcBar.top, buttonWidth, buttonHeight); 1270int buttonHeight = mbi.rcBar.bottom - mbi.rcBar.top; 1289return new Rect(leftEdge, mbi.rcBar.top, buttonWidth, buttonHeight);
MS\Internal\AutomationProxies\WindowsRebar.cs (4)
148y >= rebarRect.top && y <= rebarRect.bottom) 151y = y - rebarRect.top; 431return new Rect (rectW32.left, rectW32.top, rectW32.bottom - rectW32.top, rectW32.right - rectW32.left);
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
195Rect clientRect = new Rect(w32rect.left, w32rect.top, w32rect.right - w32rect.left, w32rect.bottom - w32rect.top);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (3)
165long area = (sbi.rcScrollBar.right - sbi.rcScrollBar.left) * (sbi.rcScrollBar.bottom - sbi.rcScrollBar.top); 472long area = (sbi.rcScrollBar.right - sbi.rcScrollBar.left) * (sbi.rcScrollBar.bottom - sbi.rcScrollBar.top); 485fThumbVisible = (sbi.rcScrollBar.bottom - sbi.rcScrollBar.top >= 5 * sizeArrow.cy / 2);
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (13)
272long area = (sbi.rcScrollBar.right - sbi.rcScrollBar.left) * (sbi.rcScrollBar.bottom - sbi.rcScrollBar.top); 325bool fThumbVisible = sbi.rcScrollBar.bottom - sbi.rcScrollBar.top >= 5 * sizeArrow.cy / 2; 326if (sbi.rcScrollBar.bottom - sbi.rcScrollBar.top < 2 * sizeArrow.cy) 329sizeArrow.cy = (sbi.rcScrollBar.bottom - sbi.rcScrollBar.top) / 2; 335rc.top = sbi.rcScrollBar.top; 336rc.bottom = sbi.rcScrollBar.top + sizeArrow.cy; 347rc.top = rc.bottom = sbi.rcScrollBar.top + sizeArrow.cy; 354rc.top = rc.bottom = sbi.rcScrollBar.top + sizeArrow.cy; 361rc.bottom = rc.top; 362rc.top = sbi.rcScrollBar.top + sizeArrow.cy; 366rc.top = rc.bottom = sbi.rcScrollBar.top + sizeArrow.cy; 398NativeMethods.Win32Rect rc = new NativeMethods.Win32Rect(sbi.xyThumbTop, sbi.rcScrollBar.top, sbi.xyThumbBottom, sbi.rcScrollBar.bottom); 405rc.top = sbi.rcScrollBar.top;
MS\Internal\AutomationProxies\WindowsSlider.cs (12)
514return new Rect (rcChannel.left, rcChannel.top, rcThumb.left - rcChannel.left, rcChannel.bottom - rcChannel.top); 517return new Rect (rcThumb.left, rcThumb.top, rcThumb.right - rcThumb.left, rcThumb.bottom - rcThumb.top); 520return new Rect (rcThumb.right, rcChannel.top, rcChannel.right - rcThumb.right, rcChannel.bottom - rcChannel.top); 525int dx = rcChannel.bottom - rcChannel.top; 531return new Rect (rcChannel.left, rcChannel.top, dx, rcThumb.top - rcChannel.top); 534return new Rect (rcThumb.left, rcThumb.top, rcThumb.right - rcThumb.left, rcThumb.bottom - rcThumb.top);
MS\Internal\AutomationProxies\WindowsStatusBar.cs (2)
385if (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)
741IntPtr center = NativeMethods.Util.MAKELPARAM (rectW32.left + ((rectW32.right - rectW32.left) / 2), rectW32.top + ((rectW32.bottom - rectW32.top) / 2));
MS\Internal\AutomationProxies\WindowsTreeView.cs (1)
1478NativeMethods.Win32Point pt = new NativeMethods.Win32Point(((rectItem.left + rectItem.right) / 2), ((rectItem.top + rectItem.bottom) / 2));
MS\Internal\AutomationProxies\WindowsUpDown.cs (5)
559int y = (int) rc.Top - updownRect.top + (int) rc.Height / 2; 605int height = (updownRect.bottom - updownRect.top); 606updownRect.bottom = updownRect.top + height / 2; 619int height = (updownRect.bottom - updownRect.top); 620updownRect.top = updownRect.top + height / 2;
MS\Win32\NativeMethods.cs (3)
1214return left >= right || top >= bottom; 1238return new Rect(rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top);