148 writes to X
PresentationCore (21)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
1366_inkSpaceRectangle.X = data;
Core\CSharp\MS\Internal\TextFormatting\FormattedTextSymbols.cs (1)
275boundingBox.X += glyphRun.BaselineOrigin.X;
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (1)
2699boundingBox.X -= origin.X;
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (1)
2671objectBounds.X += baselineOrigin.X;
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (1)
270inkBoundingBox.X += glyphRun.BaselineOrigin.X;
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (2)
641boundingBox.X -= origin.X; 1837inkBoundingBox.X += glyphRun.BaselineOrigin.X;
Core\CSharp\System\Windows\LayoutManager.cs (1)
485arrangeRect.X = arrangeRect.Y = 0;
Core\CSharp\System\Windows\Media\BoundsDrawingContextWalker.cs (1)
607bounds.X = Double.NegativeInfinity;
Core\CSharp\System\Windows\Media\FormattedText.cs (2)
1694rect.X = enumerator.CurrentParagraphWidth - rect.Right; 1697rect.X += lineOrigin.X;
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (1)
217boundingRect.X -= 0.5*strokeThickness;
Core\CSharp\System\Windows\Media\ScaleTransform.cs (2)
112rect.X -= centerX; 120rect.X += centerX;
Core\CSharp\System\Windows\Media\Visual.cs (6)
428bboxSubgraph.X = Double.NegativeInfinity; 609bboxSubgraph.X += _offset.X; 623bboxSubgraph.X = Double.NegativeInfinity; 1081_bboxSubgraph.X = Double.NegativeInfinity; 1143bboxSubgraph.X += _offset.X; 1156bboxSubgraph.X = Double.NegativeInfinity;
Shared\MS\Internal\PointUtil.cs (1)
464rect.X = rc.left;
PresentationFramework (110)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
329rect.X += rect.Height / 2.0;
src\Framework\MS\Internal\Documents\ColumnResult.cs (2)
62_layoutBox.X += contentOffset.X; 87_layoutBox.X += contentOffset.X;
src\Framework\MS\Internal\Documents\ScrollData.cs (4)
192rectangle.X += viewport.X; 206viewport.X = minX; 211rectangle.X = viewport.X; 225rectangle.X -= viewport.X;
src\Framework\MS\Internal\Documents\TextBoxLine.cs (2)
281rect.X += adjustedXOffset; 526rect.X += delta;
src\Framework\MS\Internal\Documents\TextBoxView.cs (4)
663rect.X = rect.Right; 670rect.X = rect.Right; 2029rect.X -= _scrollData.HorizontalOffset; 2033rect.X += GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width));
src\Framework\MS\Internal\Documents\TextDocumentView.cs (4)
181columnBox.X = visibleRect.X; 1211rect.X += subpageParagraphResult.ContentOffset.X; 1311layoutBox.X = visibleRect.X; 1402layoutBox.X = visibleRectThisPara.X;
src\Framework\MS\Internal\Documents\TextViewBase.cs (2)
145rect.X += viewport.X; 162rect.X -= minX;
src\Framework\MS\Internal\Ink\SelectionEditingBehavior.cs (1)
351newRect.X += extendBy;
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (2)
505_rectTable.X += ptAdjust.X; 508_rectCell.X += ptAdjust.X;
src\Framework\MS\Internal\PtsHost\Line.cs (2)
534rect.X += newUOffset; 1036rect.X = rect.X + delta;
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (1)
566rect.X += xOffset;
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (2)
1887colRect.X = columnStart; 1906colRect.X = columnStart;
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (8)
1882rect.X += TextDpi.FromTextDpi(lineDesc.urStart); 1892rect.X = rect.Right; 1905rect.X = rect.Right; 1984rect.X += TextDpi.FromTextDpi(element.urStart); 1994rect.X = rect.Right; 2004rect.X = rect.Right; 2309testRect.X = visibleRect.X; 2420testRect.X = visibleRect.X;
src\Framework\MS\Internal\Text\Line.cs (2)
193rect.X += adjustedXOffset; 494rect.X += delta;
src\Framework\System\Windows\Controls\DataGridCell.cs (1)
870rect.X = RenderSize.Width - thickness;
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (5)
1502rcChild.X = arrangeState.NextFrozenCellStart; 1516rcChild.X = arrangeState.NextNonFrozenCellStart; 1524rcChild.X = arrangeState.NextFrozenCellStart; 1529rcChild.X = arrangeState.NextFrozenCellStart - cellChoppedWidth; 1539rcChild.X = arrangeState.NextNonFrozenCellStart;
src\Framework\System\Windows\Controls\DockPanel.cs (1)
311rcChild.X = Math.Max(0.0, arrangeSize.Width - accumulatedRight);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
153childRect.X = -dataGrid.HorizontalScrollOffset;
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (5)
495childRect.X = -HorizontalOffset; 604rectangle.X += viewport.X; 616viewport.X = minX; 624rectangle.X -= viewport.X; 633rectangle.X -= viewport.X;
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1627rect.X -= offset.X;
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
311rcChild.X += previousChildSize;
src\Framework\System\Windows\Controls\Primitives\UniformGrid.cs (3)
222childBounds.X += childBounds.Width * FirstColumn; 232childBounds.X += xStep; 236childBounds.X = 0;
src\Framework\System\Windows\Controls\Stack.cs (5)
743rcChild.X = ComputePhysicalFromLogicalOffset(arrangeElement, scrollData.ComputedOffset.X, true); 748rcChild.X = -1.0 * scrollData.ComputedOffset.X; 764rcChild.X += previousChildSize; 922newRect.X = targetRectOffset; 981newRect.X = childOffsetWithinViewport;
src\Framework\System\Windows\Controls\StickyNote.cs (2)
945newRectangle.X = newRectangle.X < 0d ? 0d : newRectangle.X; 966newRectangle.X = 0d;
src\Framework\System\Windows\Controls\TextBlock.cs (3)
2326rect.X += contentOffset.X; 2336rect.X = rect.Right; 2346rect.X = rect.Right;
src\Framework\System\Windows\Controls\ToolBarTray.cs (3)
445rcChild.X = 0; 456rcChild.X += toolBarArrangeSize.Width; 464rcChild.X += bandThickness;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (33)
4481viewport.X = offsetList[offsetList.Count-1]; 4521extendedViewport.X += viewport.X - _viewport.X; 4690extendedViewport.X = pixelSize - pixelSizeBeforeViewport; 4694extendedViewport.X -= pixelSizeBeforeViewport; 4707extendedViewport.X = 0.0; 4728extendedViewport.X = logicalSize - logicalSizeBeforeViewport; 4732extendedViewport.X -= logicalSizeBeforeViewport; 4742extendedViewport.X = 0.0; 4880viewport.X = ScrollContentPresenter.CoerceOffset(viewport.X, extent.Width, viewport.Width); 4883viewport.X = ScrollContentPresenter.CoerceOffset(viewport.X - 1, extent.Width, viewport.Width); 4961viewport.X -= IsPixelBased ? pixelSize.Width : logicalSize.Width; 5182viewport.X -= IsPixelBased ? inset.Left : isHeaderBeforeItems ? 1 : 0; 6590childViewport.X = (IsPixelBased ? stackPixelSizeInCacheBeforeViewport.Width : stackLogicalSizeInCacheBeforeViewport.Width) + containerSize.Width; 6595childViewport.X = Math.Min(childViewport.X, 0) - 6602childViewport.X -= firstItemInViewportOffset; 7004adjustedChildViewport.X -= IsPixelBased ? frontPixelSize.Width + itemDesiredSizes.PixelSize.Width 8264rcChild.X = 0.0; 8277rcChild.X = -1.0 * 8285rcChild.X = -1.0 * _scrollData._computedOffset.X; 8290rcChild.X = -1.0 * _scrollData._computedOffset.X; 8301rcChild.X += _firstItemInExtendedViewportOffset; 8312rcChild.X += _pixelDistanceToFirstContainerInExtendedViewport; 8412rcChild.X += previousChildSize.Width; 8476rcChild.X = previousChildOffset.X - distance; 8490rcChild.X = previousChildOffset.X + distance; 8500rcChild.X -= childDesiredSize.Width; 8504rcChild.X += previousChildSize.Width; 8530rcChild.X = previousChildOffset.X; 8544rcChild.X = previousChildOffset.X; 9653_viewport.X = newOffset; 9654_extendedViewport.X += delta; 11061newRect.X = targetRectOffset; 11112newRect.X = childOffsetWithinViewport;
src\Framework\System\windows\Documents\CaretElement.cs (2)
348scrollRectangle.X += scrollRectangle.Width; 381scrollRectangle.X -= scrollToOriginPosition;
src\Framework\System\Windows\Documents\FixedHighlight.cs (2)
173designRect.X = g.OriginX - x2; 177designRect.X = g.OriginX + x1;
src\Framework\System\Windows\Documents\FixedTextView.cs (3)
1057designRect.X = run.BaselineOrigin.X - x2; 1061designRect.X = run.BaselineOrigin.X + x1; 1081caretRect.X += caretRect.Width / 2;
src\Framework\System\Windows\Documents\Glyphs.cs (1)
128inkBoundingBox.X += _glyphRunOrigin.X;
src\Framework\System\Windows\Window.cs (1)
8469X = lprcMonitor.left / dpiScaleX,
PresentationFramework.Aero (4)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
460childArrangeRect.X = (finalSize.Width - childArrangeRect.Width) * 0.5;
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
295childArrangeRect.X = border.Left;
Microsoft\Windows\Themes\ScrollChrome.cs (2)
425bounds.X += 0.5; 448bounds.X += 1.0;
PresentationFramework.Classic (3)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
724childArrangeRect.X = border.Left; 735childArrangeRect.X += 1.0; 1058bounds.X += singleThickness.Left;
PresentationFramework.Luna (4)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
377childArrangeRect.X = (finalSize.Width - childArrangeRect.Width) * 0.5;
Microsoft\Windows\Themes\ScrollChrome.cs (3)
244bounds.X += padding.Left; 262bounds.X += 0.5; 285bounds.X += 1.0;
PresentationFramework.Royale (4)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
335childArrangeRect.X = (finalSize.Width - childArrangeRect.Width) * 0.5;
Microsoft\Windows\Themes\ScrollChrome.cs (3)
226bounds.X += padding.Left; 244bounds.X += 0.5; 267bounds.X += 1.0;
UIAutomationClientsideProviders (2)
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
1414rect.X = clientRect.X; 1502rect.X = left;
198 references to X
PresentationCore (16)
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations.cs (2)
83System.Diagnostics.Debug.Assert((boundingBox.X <= 0) && (boundingBox.Y <= 0)); 89_shapeBounds.X * pressureFactor,
Core\CSharp\MS\Internal\Media3D\M3DUtil.cs (2)
477double tx = viewport.X + sx; 496double tx = viewport.X + sx;
Core\CSharp\System\Windows\Media\EllipseGeometry.cs (2)
54RadiusX = (rect.Right - rect.X) * (1.0 / 2.0); 56Center = new Point(rect.X + RadiusX, rect.Y + RadiusY);
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (6)
154DoubleUtil.AreClose(rect1.X, rect2.X) && 508points[1].X = points[0].X = points[15].X = points[14].X = rect.X; 509points[2].X = points[13].X = rect.X + bezierX; 510points[3].X = points[12].X = rect.X + radiusX; 529points[0].X = points[3].X = points[4].X = rect.X;
Core\CSharp\System\Windows\UIElement.cs (3)
1132return new Rect(RoundLayoutValue(rect.X, dpiScaleX), 1286if (!DoubleUtil.AreClose(oldOffset.X, finalRect.X) || 1289VisualOffset = new Vector(finalRect.X, finalRect.Y);
Shared\MS\Internal\PointUtil.cs (1)
444rc.left = DoubleUtil.DoubleToInt(rect.X);
PresentationFramework (146)
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (3)
409TranslateTransform bodyOffset = new TranslateTransform(markerRect.X, markerRect.Y + _topTailHeight + MarkerVerticalSpace); 418TranslateTransform bottomOffset = new TranslateTransform(markerRect.X, markerRect.Bottom - _bottomTailHeight); 420TranslateTransform topOffset = new TranslateTransform(markerRect.X, markerRect.Top + MarkerVerticalSpace);
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (1)
417_rbw.Value.ResizeMove((int)r.X, (int)r.Y, (int)r.Width, (int)r.Height);
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
993new Rect(imageableRect.X,
src\Framework\MS\Internal\Documents\DocumentGrid.cs (6)
1889Rect translatedRect = new Rect(HorizontalOffset + r.X, VerticalOffset + r.Y, 1901SetHorizontalOffsetInternal(translatedRect.X - (ViewportWidth / 2.0)); 1925if (r.X < HorizontalOffset) 1927SetHorizontalOffsetInternal(HorizontalOffset - (HorizontalOffset - r.X)); 1929else if (r.X > HorizontalOffset + ViewportWidth) 1931SetHorizontalOffsetInternal(HorizontalOffset + (r.X - (HorizontalOffset + ViewportWidth)));
src\Framework\MS\Internal\Documents\DocumentPageTextView.cs (1)
234newSuggestedOffset = TransformToAncestor(new Point(rect.X, rect.Y));
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (1)
999point = TransformToAncestor(pageTextView.RenderScope, new Point(rect.X, rect.Y));
src\Framework\MS\Internal\Documents\ParagraphResult.cs (3)
954return new Vector(LayoutBox.X + TextDpi.FromTextDpi(mbp.BPLeft), LayoutBox.Y + TextDpi.FromTextDpi(mbp.BPTop)); 1069return new Vector(LayoutBox.X + TextDpi.FromTextDpi(mbp.BPLeft), LayoutBox.Y + TextDpi.FromTextDpi(mbp.BPTop)); 1242return new Vector(LayoutBox.X + TextDpi.FromTextDpi(mbp.BPLeft), LayoutBox.Y + TextDpi.FromTextDpi(mbp.BPTop));
src\Framework\MS\Internal\Documents\ScrollData.cs (3)
192rectangle.X += viewport.X; 211rectangle.X = viewport.X; 225rectangle.X -= viewport.X;
src\Framework\MS\Internal\Documents\TextDocumentView.cs (5)
181columnBox.X = visibleRect.X; 879if (DoubleUtil.LessThanOrClose(point.X, paragraphBox.X + paragraphBox.Width / 2)) 1311layoutBox.X = visibleRect.X; 1402layoutBox.X = visibleRectThisPara.X; 2114Point midPoint = new Point(paragraphBox.X + paragraphBox.Width / 2, paragraphBox.Y + paragraphBox.Height / 2);
src\Framework\MS\Internal\Documents\TextParagraphView.cs (12)
737if (point.X < lineBox.X && lineIndex > 0) 743if (point.X <= siblingLineBox.X + siblingLineBox.Width) 749siblingGap = Math.Max(lineBox.X - (siblingLineBox.X + siblingLineBox.Width), 0); 750if (point.X < lineBox.X - siblingGap / 2) 766else if ((point.X > lineBox.X + lineBox.Width) && (lineIndex < lines.Count - 1)) 772if (point.X >= siblingLineBox.X) 778siblingGap = Math.Max(siblingLineBox.X - (lineBox.X + lineBox.Width), 0); 779if (point.X > siblingLineBox.X - siblingGap / 2) 797foundHit = snapToText || (point.X >= lineBox.X && point.X <= lineBox.X + lineBox.Width);
src\Framework\MS\Internal\Documents\TextViewBase.cs (1)
145rect.X += viewport.X;
src\Framework\MS\Internal\PtsHost\Line.cs (1)
1036rect.X = rect.X + delta;
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (1)
1871double columnStart = tableContentRect.X;
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (2)
2309testRect.X = visibleRect.X; 2420testRect.X = visibleRect.X;
src\Framework\System\Windows\Controls\DataGridColumnFloatingHeader.cs (2)
53brush.Viewbox = new Rect(viewBox.X, viewBox.Y, width - header.GetVisualCanvasMarginX(), viewBox.Height); 80brush.Viewbox = new Rect(viewBox.X, viewBox.Y, viewBox.Width, height - header.GetVisualCanvasMarginY());
src\Framework\System\Windows\Controls\DocumentViewer.cs (4)
1419if (point.X < gridRect.X) 1421horizontalOffset -= (gridRect.X - point.X); 1423else if (point.X > gridRect.X + gridRect.Width) 1425horizontalOffset += (point.X - (gridRect.X + gridRect.Width));
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
1346double startX = rect.X; 1376return new Point(HeadersPositionList[index].X, 0);
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (3)
604rectangle.X += viewport.X; 624rectangle.X -= viewport.X; 633rectangle.X -= viewport.X;
src\Framework\System\Windows\Controls\Primitives\UniformGrid.cs (1)
233if (childBounds.X >= xBound)
src\Framework\System\Windows\Controls\Stack.cs (1)
899targetRectOffset = r.X;
src\Framework\System\Windows\Controls\StickyNote.cs (9)
943if (newRectangle.X < 0 || newRectangle.Y < 0) 945newRectangle.X = newRectangle.X < 0d ? 0d : newRectangle.X; 960if (newRectangle.X < 0 || newRectangle.Y < 0) 962if (newRectangle.X < 0) 965newRectangle.Width = newRectangle.Width + newRectangle.X; 1157Point minBoundary = new Point(-(rectNote.X + rectNote.Width - leftBoundary), - rectNote.Y); 1158Point maxBoundary = new Point(rectPage.Width - rectNote.X - rightBoundary, rectPage.Height - rectNote.Y - 20); 1192if (rectNote.X + wNew < 45)
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (1)
1843asDoubles[4 * i] = rects[i].X;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (43)
1182? elementRect.Y : elementRect.X; 1266firstContainerOffsetFromViewport = elementRect.X; 1296if (DoubleUtil.GreaterThanOrClose(elementRect.X, 0)) 1329DoubleUtil.GreaterThanOrClose(elementRect.X, 0)) 1333DoubleUtil.GreaterThan(elementRect.X, 0)) // this container is non-top 2580double spanBeforeViewport = Math.Max(isHorizontal ? viewport.X : viewport.Y, 0.0); 4450double offset = isHorizontal ? viewport.X : viewport.Y; 4521extendedViewport.X += viewport.X - _viewport.X; 4670pixelSizeBeforeViewport = Math.Max(pixelSizeBeforeViewport, Math.Abs(_viewport.X - _extendedViewport.X)); 4674logicalSizeBeforeViewport = Math.Max(logicalSizeBeforeViewport, Math.Abs(_viewport.X - _extendedViewport.X)); 4704if (DoubleUtil.LessThan(extendedViewport.X, 0.0)) 4706extendedViewport.Width = Math.Max(extendedViewport.Width + extendedViewport.X, 0.0); 4710if (DoubleUtil.GreaterThan(extendedViewport.X + extendedViewport.Width, _scrollData._extent.Width)) 4712extendedViewport.Width = _scrollData._extent.Width - extendedViewport.X; 4739if (DoubleUtil.LessThan(extendedViewport.X, 0.0)) 4741extendedViewport.Width = Math.Max(extendedViewport.Width / approxSizeOfLogicalUnit + extendedViewport.X, 0.0) * approxSizeOfLogicalUnit; 4745if (DoubleUtil.GreaterThan(extendedViewport.X + extendedViewport.Width / approxSizeOfLogicalUnit, _scrollData._extent.Width)) 4747extendedViewport.Width = (_scrollData._extent.Width - extendedViewport.X) * approxSizeOfLogicalUnit; 4880viewport.X = ScrollContentPresenter.CoerceOffset(viewport.X, extent.Width, viewport.Width); 4881if (!IsPixelBased && isHorizontal && DoubleUtil.IsZero(viewport.Width) && DoubleUtil.AreClose(viewport.X, extent.Width)) 4883viewport.X = ScrollContentPresenter.CoerceOffset(viewport.X - 1, extent.Width, viewport.Width); 4963if (DoubleUtil.GreaterThan(parentViewport.X, 0)) 4969if (IsPixelBased && DoubleUtil.GreaterThan(pixelSize.Width, parentViewport.X)) 4975sizeAfterStartViewportEdge = pixelSize.Width - parentViewport.X; 5191if (DoubleUtil.GreaterThan(parentViewport.X, 0)) 5203if (IsPixelBased && DoubleUtil.GreaterThan(0, viewport.X)) 5212cacheBeforeSize = Math.Max(0, cacheBeforeSize - parentViewport.X); 5217viewport.Width = Math.Max(0, viewport.Width + viewport.X); 5447double spanBeforeViewport = Math.Max(isHorizontal ? viewport.X : viewport.Y, 0.0); 5563double oldOffset = isHorizontal ? viewport.X : viewport.Y; 6595childViewport.X = Math.Min(childViewport.X, 0) - 6609isAfterFirstItem || DoubleUtil.LessThanOrClose(childViewport.X, 0.0) ? 6620isAfterFirstItem || DoubleUtil.LessThanOrClose(childViewport.X, 0.0) ? 7097pixelSizeBeforeViewport = DoubleUtil.LessThan(childViewport.X, childPixelSize.Width) ? Math.Max(childViewport.X, 0.0) : childPixelSize.Width; 7115if (DoubleUtil.GreaterThanOrClose(childViewport.X, childLogicalSize.Width)) 7182if (DoubleUtil.GreaterThanOrClose(childViewport.X, childPixelSize.Width) || 7200if (DoubleUtil.GreaterThanOrClose(childViewport.X, childLogicalSize.Width) || 7245double childPixelWidthInViewport = Math.Min(childViewport.Width, childPixelSize.Width - Math.Max(childViewport.X, 0.0)); 11027targetRectOffset = r.X;
src\Framework\System\windows\Documents\CaretElement.cs (1)
286newLeft = caretRectangle.X;
src\Framework\System\Windows\Documents\FixedPageStructure.cs (2)
168double absHorDistance = Math.Max(0, (pt.X > lineResult.LayoutBox.X) ? (pt.X - lineResult.LayoutBox.Right) : (lineResult.LayoutBox.X - pt.X));
src\Framework\System\Windows\Documents\FixedTextView.cs (4)
860double horizontalDistance = Math.Max(0, (transformedPt.X > alignmentRect.X) ? (transformedPt.X - alignmentRect.Right) : (alignmentRect.X - transformedPt.X)); 959distance = (xoff > box.X) ? (xoff - box.Right) : (box.X - xoff);
src\Framework\System\windows\Documents\TextEditor.cs (1)
1548if (e.Point.X > lastCharacterRect.X + lastCharacterRect.Width)
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (3)
282horizontalOffset = positionRect.X; 368minPoint = new Point(bounds.X, bounds.Y); 369maxPoint = new Point(bounds.X + bounds.Width, bounds.Y + bounds.Height);
src\Framework\System\windows\Documents\TextEditorMouse.cs (1)
582if (mouseMovePoint.X > lastCharacterRect.X + lastCharacterRect.Width)
src\Framework\System\windows\Documents\TextEditorSelection.cs (1)
2466double x = textview.GetRectangleFromTextPosition(position).X;
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (1)
1746double dx = mousePoint.X - (_columnRect.X + _columnRect.Width / 2);
src\Framework\System\windows\Documents\TextSelection.cs (11)
2005(cursorPosition.LogicalDirection == LogicalDirection.Forward && objectEdgeRect.X < cursorMousePoint.X || 2006cursorPosition.LogicalDirection == LogicalDirection.Backward && cursorMousePoint.X < objectEdgeRect.X)) 2011(cursorPosition.LogicalDirection == LogicalDirection.Forward && objectEdgeRect.X > cursorMousePoint.X || 2012cursorPosition.LogicalDirection == LogicalDirection.Backward && cursorMousePoint.X > objectEdgeRect.X)) 2020(cursorPosition.LogicalDirection == LogicalDirection.Forward && objectEdgeRect.X > cursorMousePoint.X || 2021cursorPosition.LogicalDirection == LogicalDirection.Backward && cursorMousePoint.X > objectEdgeRect.X)) 2026(cursorPosition.LogicalDirection == LogicalDirection.Forward && objectEdgeRect.X < cursorMousePoint.X || 2027cursorPosition.LogicalDirection == LogicalDirection.Backward && cursorMousePoint.X < objectEdgeRect.X)) 2160double scrollToOriginPosition = CalculateScrollToOriginPosition(_textEditor, caretPosition, caretRectangle.X); 2255Point top = new Point(caretRectangle.X, caretRectangle.Y); 2256Point bottom = new Point(caretRectangle.X, caretRectangle.Y + caretRectangle.Height);
src\Framework\System\Windows\FrameworkElement.cs (5)
4548SetLayoutOffset(new Vector(finalRect.X, finalRect.Y), oldRenderSize); 4781offset.X += finalRect.X + margin.Left; 4964Rect slotClipRect = new Rect(-offset.X + inkRectTransformed.X, 5010Rect slotRect = new Rect(-offset.X + inkRectTransformed.X, 5252t.Children.Add(new TranslateTransform(-inkRectTransformed.X, -inkRectTransformed.Y));
src\Framework\System\Windows\Input\KeyboardNavigation.cs (2)
653Canvas.SetLeft(control, rect.X); 671Canvas.SetLeft(control, rect.X);
src\Framework\System\Windows\Interop\ActiveXHost.cs (2)
204_bounds.left = (int) bounds.X; 206_bounds.right = (int) (bounds.Width + bounds.X);
src\Framework\System\Windows\Interop\HwndHost.cs (1)
810(int)rcBoundingBox.X,
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (1)
773mousePosWindow.Offset(-windowPosition.X, -windowPosition.Y);
src\Framework\System\Windows\Standard\MessageWindow.cs (1)
100(int)location.X,
src\Framework\System\Windows\Window.cs (2)
3952leftDeviceUnits = ownerRectDeviceUnits.X + ((ownerRectDeviceUnits.Width - currentSizeDeviceUnits.Width) / 2); 4114Point locationLogicalUnits = DeviceToLogicalUnits(new Point(rectDeviceUnits.X, rectDeviceUnits.Y));
PresentationFramework.Aero (7)
Microsoft\Windows\Themes\ScrollChrome.cs (7)
473new Rect(bounds.X, bounds.Y + 2.0, bounds.Width, bounds.Height - 2.0), 492new Rect(bounds.X, bounds.Y, bounds.Width, bounds.Height), 506new Rect(bounds.X, bounds.Y, bounds.Width, bounds.Height), 550double x = bounds.X + ((bounds.Width * 0.5) - 4.0); 573double x = bounds.X + ((bounds.Width - width) * 0.5); 738double x = (bounds.X + (bounds.Width * 0.5)) / widthScale - (glyphWidth * 0.5); 752double x = bounds.X + (bounds.Width * 0.5) - (glyphWidth * 0.5);
PresentationFramework.Luna (7)
Microsoft\Windows\Themes\ScrollChrome.cs (7)
312new Rect(bounds.X, bounds.Y + 2.0, bounds.Width, bounds.Height - 2.0), 332new Rect(bounds.X, bounds.Y, bounds.Width, bounds.Height), 346new Rect(bounds.X, bounds.Y, bounds.Width, bounds.Height), 391double x = bounds.X + ((bounds.Width * 0.5) - 4.0); 413double x = bounds.X + ((bounds.Width - width) * 0.5); 597double x = (bounds.X + (bounds.Width * 0.5)) / widthScale - (glyphWidth * 0.5); 611double x = bounds.X + (bounds.Width * 0.5) - (glyphWidth * 0.5);
PresentationFramework.Royale (6)
Microsoft\Windows\Themes\ScrollChrome.cs (6)
292new Rect(bounds.X, bounds.Y, bounds.Width, bounds.Height), 306new Rect(bounds.X, bounds.Y, bounds.Width, bounds.Height), 351double x = bounds.X + ((bounds.Width * 0.5) - 4.0); 373double x = bounds.X + ((bounds.Width - width) * 0.5); 557double x = (bounds.X + (bounds.Width * 0.5)) / widthScale - (glyphWidth * 0.5); 571double x = bounds.X + (bounds.Width * 0.5) - (glyphWidth * 0.5);
System.Activities.Presentation (6)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (4)
83Fx.Assert(anchorPoint.X >= canvas.X && anchorPoint.X <= canvas.X + canvas.Width, "X axis of anchorPoint not within canvas"); 89if (anchorPoint.X + desiredSize.Width <= canvas.X + canvas.Width) 105if (anchor == AdornerLocation.None && anchorPoint.X - desiredSize.Width >= canvas.X && anchorPoint.Y - desiredSize.Height >= canvas.Y)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (2)
135Rect shrunk = new Rect(rect.X + delta, rect.Y + delta, rect.Width - delta * 2, rect.Height - delta * 2); 210Rect shrunk = new Rect(rect.X + delta, rect.Y + delta, rect.Width - delta * 2, rect.Height - delta * 2);
UIAutomationClientsideProviders (2)
MS\Internal\AutomationProxies\Misc.cs (1)
91doubles[scan++] = rectArray[i].X;
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (1)
1414rect.X = clientRect.X;
WindowsBase (8)
Base\System\Windows\Generated\Rect.cs (5)
64return rect1.X == rect2.X && 105return rect1.X.Equals(rect2.X) && 164return X.GetHashCode() ^
Shared\MS\Internal\DoubleUtil.cs (3)
244DoubleUtil.AreClose(rect1.X, rect2.X) && 278if ( DoubleUtil.IsNaN(r.X)