Core\CSharp\MS\Internal\Ink\StylusShape.cs (13)
219Point topLeft = new Point(-(m_width * 0.5), -(m_height * 0.5));
291new Point( -radiusX, -borderMagicY),
292new Point(-borderMagicX, -radiusY),
293new Point( 0, -radiusY),
294new Point( borderMagicX, -radiusY),
295new Point( radiusX, -borderMagicY),
296new Point( radiusX, 0),
297new Point( radiusX, borderMagicY),
298new Point( borderMagicX, radiusY),
299new Point( 0, radiusY),
300new Point(-borderMagicX, radiusY),
301new Point( -radiusX, borderMagicY),
302new Point( -radiusX, 0)};
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (10)
685Point vectorToOrigin = new Point();
730DrawTextLine(null, new Point(0, 0), null);
934new Point(hitTestDistance, 0),
1561Point position = new Point(0,0);
1844new Point(0, 0),
1869new Point(0, 0),
1922new Point(0, 0),
1943new Point(0, 0),
2030Point position = new Point(0, 0);
2177new DrawingState(null, new Point(0, 0), null, this),
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (6)
344xy = new Point(line.Formatter.IdealToReal(line.ParagraphWidth, line.PixelsPerDip) - vectorToOrigin.X - u + origin.X, v + origin.Y);
348xy = new Point(u + vectorToOrigin.X + origin.X, v + origin.Y);
377xy = new Point(line.Formatter.IdealToReal(line.ParagraphWidth - u, line.PixelsPerDip) - vectorToOrigin.X + origin.X, line.Formatter.IdealToReal(v, line.PixelsPerDip) + origin.Y);
381xy = new Point(line.Formatter.IdealToReal(u, line.PixelsPerDip) + vectorToOrigin.X + origin.X, line.Formatter.IdealToReal(v, line.PixelsPerDip) + origin.Y);
443new Point(line.Formatter.IdealToReal(topLeft.x, line.PixelsPerDip), line.Formatter.IdealToReal(topLeft.y, line.PixelsPerDip)),
444new Point(line.Formatter.IdealToReal(bottomRight.x, line.PixelsPerDip), line.Formatter.IdealToReal(bottomRight.y, line.PixelsPerDip))
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (8)
49new Point(e.OriginX, e.OriginY)));
66new Point(e.OriginX, e.OriginY),
104new Point(e.OriginX, e.OriginY),
138new Point(e.OriginX, e.OriginY),
184new Point(e.OriginX, e.OriginY),
258new Point(e.ManipulationOrigin.X, e.ManipulationOrigin.Y),
620_containerPivotPoint = new Point();
790private static readonly Point LayoutUpdateDetectionPivotPoint = new Point(-10234.1234, -10234.1234);
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (16)
83new Point(1f, 0f), new Point(0f, 1f));
271path.StartPoint = new Point(hatchRect.Left, hatchRect.Top);
275PathSegment line = new LineSegment(new Point(hatchRect.Right, hatchRect.Top), true);
279line = new LineSegment(new Point(hatchRect.Right, hatchRect.Bottom), true);
283line = new LineSegment(new Point(hatchRect.Left, hatchRect.Bottom), true);
287line = new LineSegment(new Point(hatchRect.Left, hatchRect.Top), true);
359Point center = new Point();
368center = new Point(rectWireFrame.Left, rectWireFrame.Top);
374center = new Point(rectWireFrame.Left + rectWireFrame.Width / 2, rectWireFrame.Top);
381center = new Point(rectWireFrame.Right, rectWireFrame.Top);
387center = new Point(rectWireFrame.Left, rectWireFrame.Top + rectWireFrame.Height / 2);
394center = new Point(rectWireFrame.Right, rectWireFrame.Top + rectWireFrame.Height / 2);
401center = new Point(rectWireFrame.Left, rectWireFrame.Bottom);
407center = new Point(rectWireFrame.Left + rectWireFrame.Width / 2, rectWireFrame.Bottom);
414center = new Point(rectWireFrame.Right, rectWireFrame.Bottom);
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (8)
885offset = TransformToDescendant(pageTextView.RenderScope, new Point(suggestedX, 0));
893offset = TransformToAncestor(pageTextView.RenderScope, new Point(newSuggestedX, 0));
914position = pageTextView.GetTextPositionFromPoint(new Point(suggestedX, 0), true);
923position = pageTextView.GetTextPositionFromPoint(new Point(suggestedX, pageTextView.RenderScope.RenderSize.Height), true);
950offset = TransformToAncestor(pageTextView.RenderScope, new Point(newSuggestedX, 0));
999point = TransformToAncestor(pageTextView.RenderScope, new Point(rect.X, rect.Y));
1383point = TransformToDescendant(pageTextView.RenderScope, new Point(lineRequest.NewSuggestedX, 0));
1392newPosition = pageTextView.GetTextPositionFromPoint(new Point(-1, -1), true);
src\Framework\MS\Internal\Ink\PenCursorManager.cs (27)
60return CreateCursorFromDrawing(penDrawing, new Point(0, 0));
123s_StrokeEraserCursor = CreateCursorFromDrawing(drawing, new Point(5, 5));
486path.StartPoint = new Point(5, 5);
488LineSegment segment = new LineSegment(new Point(16, 5), true);
492segment = new LineSegment(new Point(26, 15), true);
496segment = new LineSegment(new Point(15, 15), true);
500segment = new LineSegment(new Point(5, 5), true);
510path.StartPoint = new Point(5, 5);
512segment = new LineSegment(new Point(5, 10), true);
516segment = new LineSegment(new Point(15, 19), true);
520segment = new LineSegment(new Point(15, 15), true);
524segment = new LineSegment(new Point(5, 5), true);
535path.StartPoint = new Point(15, 15);
537segment = new LineSegment(new Point(15, 19), true);
541segment = new LineSegment(new Point(26, 19), true);
545segment = new LineSegment(new Point(26, 15), true);
549segment = new LineSegment(new Point(15, 15), true);
560dc.DrawLine(pen1, new Point(5, 5), new Point(5, 0));
561dc.DrawLine(pen1, new Point(5, 5), new Point(0, 5));
562dc.DrawLine(pen1, new Point(5, 5), new Point(2, 2));
563dc.DrawLine(pen1, new Point(5, 5), new Point(8, 2));
564dc.DrawLine(pen1, new Point(5, 5), new Point(2, 8));
src\Framework\MS\Internal\PtsHost\ParagraphVisual.cs (12)
103new Point(_renderBounds.Left + pen.Thickness * 0.5, _renderBounds.Bottom - pen.Thickness * 0.5),
104new Point(_renderBounds.Right - pen.Thickness * 0.5, _renderBounds.Top + pen.Thickness * 0.5)));
111new Point(_renderBounds.Left + pen.Thickness / 2, _renderBounds.Top),
112new Point(_renderBounds.Left + pen.Thickness / 2, _renderBounds.Bottom));
122new Point(_renderBounds.Right - pen.Thickness / 2, _renderBounds.Top),
123new Point(_renderBounds.Right - pen.Thickness / 2, _renderBounds.Bottom));
133new Point(_renderBounds.Left, _renderBounds.Top + pen.Thickness / 2),
134new Point(_renderBounds.Right, _renderBounds.Top + pen.Thickness / 2));
144new Point(_renderBounds.Left, _renderBounds.Bottom - pen.Thickness / 2),
145new Point(_renderBounds.Right, _renderBounds.Bottom - pen.Thickness / 2));
156new Point(_renderBounds.Left + _borderThickness.Left, _renderBounds.Top + _borderThickness.Top),
157new Point(_renderBounds.Right - _borderThickness.Right, _renderBounds.Bottom - _borderThickness.Bottom)));
src\Framework\System\Windows\Controls\Border.cs (22)
443Rect rect = new Rect(new Point(halfThickness, halfThickness),
444new Point(RenderSize.Width - halfThickness, RenderSize.Height - halfThickness));
472new Point(halfThickness, 0),
473new Point(halfThickness, RenderSize.Height));
504new Point(RenderSize.Width - halfThickness, 0),
505new Point(RenderSize.Width - halfThickness, RenderSize.Height));
536new Point(0, halfThickness),
537new Point(RenderSize.Width, halfThickness));
566new Point(0, RenderSize.Height - halfThickness),
567new Point(RenderSize.Width, RenderSize.Height - halfThickness));
581ptTL = new Point(UIElement.RoundLayoutValue(border.Left, dpi.DpiScaleX),
586ptBR = new Point(UIElement.RoundLayoutValue(RenderSize.Width - border.Right, dpi.DpiScaleX),
597ptTL = new Point(border.Left, border.Top);
598ptBR = new Point(RenderSize.Width - border.Right, RenderSize.Height - border.Bottom);
665Point topLeft = new Point(radii.LeftTop, 0);
666Point topRight = new Point(rect.Width - radii.RightTop, 0);
667Point rightTop = new Point(rect.Width, radii.TopRight);
668Point rightBottom = new Point(rect.Width, rect.Height - radii.BottomRight);
669Point bottomRight = new Point(rect.Width - radii.RightBottom, rect.Height);
670Point bottomLeft = new Point(radii.LeftBottom, rect.Height);
671Point leftBottom = new Point(0, rect.Height - radii.BottomLeft);
672Point leftTop = new Point(0, radii.TopLeft);
src\Framework\System\Windows\Controls\Primitives\TickBar.cs (36)
370Point startPoint = new Point(0d,0d);
371Point endPoint = new Point(0d, 0d);
385startPoint = new Point(halfReservedSpace, size.Height);
386endPoint = new Point(halfReservedSpace + size.Width, size.Height);
398startPoint = new Point(halfReservedSpace, 0d);
399endPoint = new Point(halfReservedSpace + size.Width, 0d);
411startPoint = new Point(size.Width, size.Height + halfReservedSpace);
412endPoint = new Point(size.Width, halfReservedSpace);
424startPoint = new Point(0d, size.Height + halfReservedSpace);
425endPoint = new Point(0d, halfReservedSpace);
466dc.DrawLine(pen, startPoint, new Point(startPoint.X + tickLen, startPoint.Y));
467dc.DrawLine(pen, new Point(startPoint.X, endPoint.Y),
468new Point(startPoint.X + tickLen, endPoint.Y));
503new Point(startPoint.X, y),
504new Point(startPoint.X + tickLen2, y));
520new Point(startPoint.X, y),
521new Point(startPoint.X + tickLen2, y));
534Point pt0 = new Point(startPoint.X, y0);
535Point pt1 = new Point(startPoint.X + tickLen2, y0);
536Point pt2 = new Point(startPoint.X + tickLen2, y0 + Math.Abs(tickLen2) * progression);
547pt0 = new Point(startPoint.X, y0);
548pt1 = new Point(startPoint.X + tickLen2, y0);
549pt2 = new Point(startPoint.X + tickLen2, y0 - Math.Abs(tickLen2) * progression);
573dc.DrawLine(pen, startPoint, new Point(startPoint.X, startPoint.Y + tickLen));
574dc.DrawLine(pen, new Point(endPoint.X, startPoint.Y),
575new Point(endPoint.X, startPoint.Y + tickLen));
609new Point(x, startPoint.Y),
610new Point(x, startPoint.Y + tickLen2));
625new Point(x, startPoint.Y),
626new Point(x, startPoint.Y + tickLen2));
639Point pt0 = new Point(x0, startPoint.Y);
640Point pt1 = new Point(x0, startPoint.Y + tickLen2);
641Point pt2 = new Point(x0 + Math.Abs(tickLen2) * progression, startPoint.Y + tickLen2);
652pt0 = new Point(x0, startPoint.Y);
653pt1 = new Point(x0, startPoint.Y + tickLen2);
654pt2 = new Point(x0 - Math.Abs(tickLen2) * progression, startPoint.Y + tickLen2);
src\Framework\System\windows\Documents\CaretElement.cs (8)
200point = new Point(_left, _top);
397Point targetPoint = new Point(targetRect.Left, targetRect.Top);
729pathFigure.StartPoint = new Point(0, 0);
730pathFigure.Segments.Add(new LineSegment(new Point(-bidiCaretIndicatorWidth, 0), true));
731pathFigure.Segments.Add(new LineSegment(new Point(0, _height / BidiIndicatorHeightRatio), true));
1006double deviceHeight = source.CompositionTarget.TransformToDevice.Transform(new Point(0, _height)).Y;
1104Point win32CaretPoint = new Point(0, 0);
1109win32CaretPoint = new Point(0, 0);
src\Framework\System\Windows\Documents\ImmComposition.cs (6)
770milPointTopLeft = new Point(Math.Min(rectStart.Left, rectEnd.Left), Math.Min(rectStart.Top, rectEnd.Top));
771milPointBottomRight = new Point(Math.Max(rectStart.Left, rectEnd.Left), Math.Max(rectStart.Bottom, rectEnd.Bottom));
772milPointCaret = new Point(rectCaret.Left, rectCaret.Bottom);
892milPointTopLeft = new Point(rectUi.Left, rectUi.Top);
893milPointBottomRight = new Point(rectUi.Right, rectUi.Bottom);
897milPointCaret = new Point(rectCaret.Left, rectCaret.Bottom);
src\Framework\System\windows\Documents\TextEditorSelection.cs (8)
617targetPosition = This.TextView.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.TextView, suggestedX), suggestedY), +1, out newSuggestedOffset, out pagesMoved);
641Point targetPoint = new Point(GetViewportXOffset(This.TextView, suggestedX), targetRect.Top + pageHeight);
731targetPosition = This.TextView.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.TextView, suggestedX), suggestedY), -1, out newSuggestedOffset, out pagesMoved);
755Point targetPoint = new Point(GetViewportXOffset(This.TextView, suggestedX), targetRect.Bottom - pageHeight);
1442targetPosition = This.TextView.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.TextView, suggestedX), suggestedY), +1, out newSuggestedOffset, out pagesMoved);
1469Point targetPoint = new Point(GetViewportXOffset(This.TextView, suggestedX), targetRect.Top + pageHeight);
1538targetPosition = This.TextView.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.TextView, suggestedX), suggestedY), -1, out newSuggestedOffset, out pagesMoved);
1565Point targetPoint = new Point(GetViewportXOffset(This.TextView, suggestedX), targetRect.Bottom - pageHeight);
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (10)
550new Point(
602Point windowTopLeft = new Point(_window.Left, _window.Top);
603windowTopLeft -= (Vector)DpiHelper.DevicePixelsToLogical(new Point(adjustedOffset.Left, adjustedOffset.Top), dpi.DpiScaleX, dpi.DpiScaleY);
769var mousePosScreen = new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam));
831SystemCommands.ShowSystemMenuPhysicalCoordinates(_window, new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam)));
942_windowPosAtStartOfUserMove = new Point(_window.Left, _window.Top);
1228double topLeftRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopLeft, 0), dpi.DpiScaleX, dpi.DpiScaleY).X;
1244double topRightRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopRight, 0), dpi.DpiScaleX, dpi.DpiScaleY).X;
1252double bottomLeftRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.BottomLeft, 0), dpi.DpiScaleX, dpi.DpiScaleY).X;
1260double bottomRightRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.BottomRight, 0), dpi.DpiScaleX, dpi.DpiScaleY).X;
src\Framework\System\Windows\Standard\DpiHelper.cs (8)
46Point topLeft = LogicalPixelsToDevice(new Point(logicalRectangle.Left, logicalRectangle.Top), dpiScaleX, dpiScaleY);
47Point bottomRight = LogicalPixelsToDevice(new Point(logicalRectangle.Right, logicalRectangle.Bottom), dpiScaleX, dpiScaleY);
54Point topLeft = DevicePixelsToLogical(new Point(deviceRectangle.Left, deviceRectangle.Top), dpiScaleX, dpiScaleY);
55Point bottomRight = DevicePixelsToLogical(new Point(deviceRectangle.Right, deviceRectangle.Bottom), dpiScaleX, dpiScaleY);
63Point pt = LogicalPixelsToDevice(new Point(logicalSize.Width, logicalSize.Height), dpiScaleX, dpiScaleY);
70Point pt = DevicePixelsToLogical(new Point(deviceSize.Width, deviceSize.Height), dpiScaleX, dpiScaleY);
77Point topLeft = LogicalPixelsToDevice(new Point(logicalThickness.Left, logicalThickness.Top), dpiScaleX, dpiScaleY);
78Point bottomRight = LogicalPixelsToDevice(new Point(logicalThickness.Right, logicalThickness.Bottom), dpiScaleX, dpiScaleY);
src\Framework\System\Windows\Window.cs (32)
2601var topLeftPointHelper = new WindowStartupTopLeftPointHelper(new Point(requestedLeft, requestedTop));
2760Point currentLocationLogicalUnits = DeviceToLogicalUnits(new Point(xDeviceUnits, yDeviceUnits));
2779Point requestedSizeDeviceUnits = LogicalToDeviceUnits(new Point(requestedWidth, requestedHeight));
2780Point requestedLocationDeviceUnits = LogicalToDeviceUnits(new Point(requestedLeft, requestedTop));
2842Point minSizeDeviceUnits = LogicalToDeviceUnits(new Point(MinWidth, MinHeight));
2843Point maxSizeDeviceUnits = LogicalToDeviceUnits(new Point(MaxWidth, MaxHeight));
2999Point newSizeDeviceUnits = LogicalToDeviceUnits(new Point(this.ActualWidth, this.ActualHeight));
3116Point ptDeviceUnits = LogicalToDeviceUnits(new Point(widthLogicalUnits, heightLogicalUnits));
3543Point maxSizeLogicalUnits = DeviceToLogicalUnits(new Point(maxWidthDeviceUnits, maxHeightDeviceUnits));
3544Point minSizeLogicalUnits = DeviceToLogicalUnits(new Point(_trackMinWidthDeviceUnits, _trackMinHeightDeviceUnits));
3928ownerSizeDeviceUnits = Owner.LogicalToDeviceUnits(new Point(Owner.Width, Owner.Height));
3933ownerSizeDeviceUnits = new Point(size.Width, size.Height);
3937Point ownerLocationDeviceUnits = Owner.LogicalToDeviceUnits(new Point(Owner.Left, Owner.Top));
4113Point sizeLogicalUnits = DeviceToLogicalUnits(new Point(rectDeviceUnits.Width, rectDeviceUnits.Height));
4114Point locationLogicalUnits = DeviceToLogicalUnits(new Point(rectDeviceUnits.X, rectDeviceUnits.Y));
5098Point minSizeDeviceUnits = LogicalToDeviceUnits(new Point(finalMinMax.minWidth, finalMinMax.minHeight));
5099Point maxSizeDeviceUnits = LogicalToDeviceUnits(new Point(finalMinMax.maxWidth, finalMinMax.maxHeight));
6193double convertedValue = (LogicalToDeviceUnits(new Point(newValue, 0))).X;
6214newTop = TransformWorkAreaScreenArea(new Point(0, newTop), TransformType.ScreenAreaToWorkArea).Y;
6216newTop = (LogicalToDeviceUnits(new Point(0, newTop))).Y;
6234newLeft = TransformWorkAreaScreenArea(new Point(newLeft, 0), TransformType.ScreenAreaToWorkArea).X;
6236newLeft = (LogicalToDeviceUnits(new Point(newLeft, 0))).X;
6296retPt = new Point(pt.X + deltaX, pt.Y + deltaY);
6300retPt = new Point(pt.X - deltaX, pt.Y - deltaY);
6526Point ptDeviceUnits = LogicalToDeviceUnits(new Point(leftLogicalUnits, topLogicalUnits));
6996LogicalToDeviceUnits(new Point(margin.Left, margin.Top)),
6997LogicalToDeviceUnits(new Point(logicalClientRc.Width - margin.Right, logicalClientRc.Height - margin.Bottom)));
7481_prePanningLocation = new Point(double.NaN, double.NaN);
7494return new Point(point.X - (_prePanningLocation.X - windowLocation.X), point.Y - (_prePanningLocation.Y - windowLocation.Y));
7717Point _prePanningLocation = new Point(double.NaN, double.NaN);
8097Point pt = new Point(0,0);
8477ScreenTopLeft = new Point
Core\CSharp\MS\Internal\Ink\StrokeNode.cs (27)
63internal Point Position { get { return _thisNode.Position; } }
69internal Point PreviousPosition { get { return _lastNode.Position; } }
117internal void GetContourPoints(List<Point> pointBuffer)
128internal void GetPreviousContourPoints(List<Point> pointBuffer)
192internal void GetPointsAtStartOfSegment(List<Point> abPoints,
193List<Point> dcPoints
244Point point = _lastNode.Position + (vertices[i % vertices.Length] * pressureFactor);
278Point point = _lastNode.Position + (vertices[i % vertices.Length] * pressureFactor);
317internal void GetPointsAtEndOfSegment( List<Point> abPoints,
318List<Point> dcPoints
363Point point = _thisNode.Position + (vertices[i % vertices.Length] * pressureFactor);
390Point point = _thisNode.Position + (vertices[i % vertices.Length] * pressureFactor);
423List<Point> abPoints,
424List<Point> dcPoints,
480Point intersection = GetIntersection(quad1.A, quad1.B, quad2.A, quad2.B);
554Point intersection = GetIntersection(quad1.D, quad1.C, quad2.D, quad2.C);
626Point point = _lastNode.Position + (vertices[i % vertices.Length] * pressureFactor);
686Point intersection = GetIntersection(quad1.A, quad1.B, quad2.A, quad2.B);
731Point intersection = GetIntersection(quad1.D, quad1.C, quad2.D, quad2.C);
764internal static Point GetIntersection(Point line1Start, Point line1End, Point line2Start, Point line2End)
894internal StrokeFIndices CutTest(Point begin, Point end)
1043internal Point GetPointAt(double findex)
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations.cs (20)
74_shapeBounds.Union(new Rect((Point)_vertices[i], (Point)_vertices[i + 1]));
78_shapeBounds.Union((Point)_vertices[i]);
100internal void GetNodeContourPoints(StrokeNodeData node, List<Point> pointBuffer)
133Point vertex = node.Position + (_vertices[_vertices.Length - 1] * node.PressureFactor);
136Point nextVertex = node.Position + (_vertices[i] * node.PressureFactor);
147Point vertex = node.Position + (_vertices[i] * node.PressureFactor);
153Point nextVertex = node.Position + (_vertices[i] * node.PressureFactor);
299StrokeNodeData beginNode, StrokeNodeData endNode, Quad quad, Point hitBeginPoint, Point hitEndPoint)
307Point position;
383Point nodePosition = (node == 0) ? beginNode.Position : endNode.Position;
384Point end = (node == 0) ? quad.A : quad.C;
478StrokeNodeData beginNode, StrokeNodeData endNode, Quad quad, Point hitBeginPoint, Point hitEndPoint)
485Point position = (node == 0) ? beginNode.Position : endNode.Position;
954Point position;
1111Point nodePosition = (k == 0) ? beginNode.Position : endNode.Position;
1112Point end = (k == 0) ? quad.A : quad.C;
1203Point position;
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (33)
58List<Point> connectingQuadPoints = new List<Point>(iterator.Count * 4);
70List<Point> strokeNodePoints = new List<Point>();
181Point temp = connectingQuadPoints[i];
269List<Point> pathFigureABSide = new List<Point>();//don't prealloc. It causes Gen2 collections to rise and doesn't help execution time
270List<Point> pathFigureDCSide = new List<Point>();
271List<Point> polyLinePoints = new List<Point>(4);
759List<Point> pointBuffer1,
760List<Point> pointBuffer2,
761List<Point> pointBuffer3
814private static void ReverseDCPointsRenderAndClear(StreamGeometryContext context, List<Point> abPoints, List<Point> dcPoints, List<Point> polyLinePoints, bool isEllipse, bool clear)
817Point temp;
879private static void AddFigureToStreamGeometryContext(StreamGeometryContext context, List<Point> points, bool isBezierFigure)
907private static void AddPolylineFigureToStreamGeometryContext(StreamGeometryContext context, List<Point> abPoints, List<Point> dcPoints)
930private static void AddArcToFigureToStreamGeometryContext(StreamGeometryContext context, List<Point> abPoints, List<Point> dcPoints, List<Point> polyLinePoints)
947List<Point> points = j == 0 ? abPoints : dcPoints;
951Point next = points[i];
966Point sizePoint = points[i + 1];
968Point arcToPoint = points[i + 2];
1004private static double GetAngleDeltaFromLast(Point previousPosition, Point currentPosition, ref double lastAngle)
1043private static double GetAngleBetween(Point previousPosition, Point currentPosition)
1137internal static readonly Point ArcToMarker = new Point(Double.MinValue, Double.MinValue);
Core\CSharp\MS\Internal\Media\ParserStreamGeometrycontext.cs (30)
107public override void BeginFigure(Point startPoint, bool isFilled, bool isClosed)
136public override void LineTo(Point point, bool isStroked, bool isSmoothJoin)
147public override void QuadraticBezierTo(Point point1, Point point2, bool isStroked, bool isSmoothJoin)
161public override void BezierTo(Point point1, Point point2, Point point3, bool isStroked, bool isSmoothJoin)
178public override void PolyLineTo(IList<Point> points, bool isStroked, bool isSmoothJoin)
189public override void PolyQuadraticBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin)
200public override void PolyBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin)
216public override void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection, bool isStroked, bool isSmoothJoin)
397Point point;
408Point point;
419Point point1;
420Point point2 = new Point();
434Point point1;
435Point point2 = new Point();
436Point point3 = new Point();
456IList<Point> points;
467IList<Point> points;
478IList<Point> points;
488Point point;
540private static IList<Point> DeserializeListOfPointsAndTwoBools(BinaryReader br, Byte firstByte, out bool bool1, out bool bool2)
543IList<Point> points;
544Point point;
551points = new List<Point>(count);
565private static void DeserializePointAndTwoBools(BinaryReader br, Byte firstByte, out Point point, out bool bool1, out bool bool2)
645Point point,
671private void SerializeListOfPointsAndTwoBools(ParserGeometryContextOpCodes opCode, IList<Point> points, bool bool1, bool bool2)
754Point _startPoint;
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (68)
42Point uv1,
43Point uv2)
58Point projPoint1 = objectToViewportTransform.Transform(_p1);
59Point projPoint2 = objectToViewportTransform.Transform(_p2);
66internal Point _uv1, _uv2;
69internal Point _p1Transformed, _p2Transformed;
159public override bool TryTransform(Point inPoint, out Point result)
178private bool TryInverseTransform(Point inPoint, out Point result)
194Point pointHit = new Point();
233private bool HandleOffMesh(Point mousePos, out Point outPoint)
235Point[] visCorners = new Point[4];
246Point[] texCoordsOfInterest = new Point[4];
266private List<HitTestEdge> GrabValidEdges(Point[] visualTexCoordBounds)
307Point[] triangleTexCoords = new Point[3];
444Point[] uv,
445Point[] visualTexCoordBounds,
486Point[] uv,
487Point[] visualTexCoordBounds,
493List<Point> uvList = new List<Point>();
498Point visEdgeStart = visualTexCoordBounds[i];
499Point visEdgeEnd = visualTexCoordBounds[(i + 1) % visualTexCoordBounds.Length];
509Point uv1 = uv[j];
510Point uv2 = uv[(j + 1) % uv.Length];
537Point intersUV = uv1 + dir * t;
604private void HandleCoincidentLines(Point visUV1, Point visUV2,
606Point triUV1, Point triUV2,
609Point minVisUV, maxVisUV;
611Point minTriUV, maxTriUV;
615Point uv1, uv2;
747private double IntersectRayLine(Point o, Vector d, Point p1, Point p2, out bool coinc)
818public Point _uv1;
819public Point _uv2;
836Point[] uv,
837Point[] visualTexCoordBounds,
845Point uv1, uv2;
917private void HandleSilhouetteEdge(Point uv1, Point uv2,
919Point[] bounds,
923List<Point> uvList = new List<Point>();
929Point visEdgeStart = bounds[i];
930Point visEdgeEnd = bounds[(i + 1) % bounds.Length];
950Point intersUV = uv1 + dir * t;
1007private bool IsPointInPolygon(Point[] polygon, Point p)
1040private bool FindClosestIntersection(Point mousePos, List<HitTestEdge> edges, out Point finalPoint)
1044Point closestIntersection = new Point(); // the uv of the closest intersection
1053Point currClosest;
1115Point ptOnVisual = Viewport2DVisual3D.TextureCoordsToVisualCoords(closestIntersection, _visualBrushBounds);
1119Point ptRelToCapture = _transform2DInverse.Transform(ptOnVisual);
1129Point finalVisualPoint = _transform2D.Transform(ptRelToCapture);
1146private bool TryRegularTransform(Point inPoint, out Point result)
1148Point texCoord = Viewport2DVisual3D.VisualCoordsToTextureCoords(inPoint, _visualBrushBounds);
1184Point[] texCoordsOfInterest = new Point[4];
Core\CSharp\System\Windows\Ink\Stroke2.cs (16)
123return this.GetClipResult(new Point[4] { bounds.TopLeft, bounds.TopRight, bounds.BottomRight, bounds.BottomLeft });
132public StrokeCollection GetClipResult(IEnumerable<Point> lassoPoints)
158return this.GetEraseResult(new Point[4] { bounds.TopLeft, bounds.TopRight, bounds.BottomRight, bounds.BottomLeft });
166public StrokeCollection GetEraseResult(IEnumerable<Point> lassoPoints)
190public StrokeCollection GetEraseResult(IEnumerable<Point> eraserPath, StylusShape eraserShape)
211public bool HitTest(Point point)
213return HitTest(new Point[]{point}, new EllipseStylusShape(TapHitPointSize, TapHitPointSize, TapHitRotation));
222public bool HitTest(Point point, double diameter)
228return HitTest(new Point[]{point}, new EllipseStylusShape(diameter, diameter, TapHitRotation));
259if (true == bounds.Contains((Point)stylusPoints[i]))
287public bool HitTest(IEnumerable<Point> lassoPoints, int percentageWithinLasso)
318if (true == lasso.Contains((Point)stylusPoints[i]))
347public bool HitTest(IEnumerable<Point> path, StylusShape stylusShape)
620internal StrokeIntersection[] EraseTest(IEnumerable<Point> path, StylusShape shape)
731Point w = originalDa.StylusTipTransform.Transform(new Point(originalDa.Width, 0));
732Point h = originalDa.StylusTipTransform.Transform(new Point(0, originalDa.Height));
Core\CSharp\System\Windows\Ink\StrokeCollection2.cs (12)
66public StrokeCollection HitTest(Point point)
77public StrokeCollection HitTest(Point point, double diameter)
93public StrokeCollection HitTest(IEnumerable<Point> lassoPoints, int percentageWithinLasso)
134if (true == lasso.Contains((Point)stylusPoints[i]))
206public StrokeCollection HitTest(IEnumerable<Point> path, StylusShape stylusShape)
253public void Clip(IEnumerable<Point> lassoPoints)
299Clip(new Point[4] { bounds.TopLeft, bounds.TopRight, bounds.BottomRight, bounds.BottomLeft });
307public void Erase(IEnumerable<Point> lassoPoints)
345Erase(new Point[4] { bounds.TopLeft, bounds.TopRight, bounds.BottomRight, bounds.BottomLeft });
355public void Erase(IEnumerable<Point> eraserPath, StylusShape eraserShape)
482private StrokeCollection PointHitTest(Point point, StylusShape shape)
489if (stroke.HitTest(new Point[] { point }, shape))
Core\CSharp\System\Windows\Input\MouseDevice.cs (39)
99protected Point GetScreenPosition()
129internal Point GetScreenPositionFromSystem()
134Point ptScreen = new Point(0, 0);
170protected Point GetClientPosition()
172Point ptClient = new Point(0, 0);
196protected Point GetClientPosition(PresentationSource presentationSource)
198Point ptScreen = GetScreenPosition();
199Point ptClient = PointUtil.ScreenToClient(ptScreen, presentationSource);
628public Point GetPosition(IInputElement relativeTo)
667Point ptClient;
668Point ptRoot;
670Point ptRelative;
982Point ptClient = GetClientPosition();
1421Point ptClient = new Point(rawMouseInputReport.X, rawMouseInputReport.Y);
1422Point ptRoot = PointUtil.TryClientToRoot(ptClient, rawMouseInputReport.InputSource, false, out success);
1579Point ptClient = new Point(rawMouseInputReport.X, rawMouseInputReport.Y);
1580Point ptRoot = (Point) e.StagingItem.GetData(_tagRootPoint);
1581Point ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.InputSource.RootVisual, (DependencyObject)_mouseOver, out mouseOverAvailable);
1888Point ptClient = GetClientPosition();
1910private bool ArePointsClose(Point A, Point B)
2161internal static IInputElement GlobalHitTest(bool clientUnits, Point pt, PresentationSource inputSource)
2170internal static IInputElement GlobalHitTest(Point ptClient, PresentationSource inputSource)
2183private static void GlobalHitTest(bool clientUnits, Point pt, PresentationSource inputSource, out IInputElement enabledHit, out IInputElement originalHit)
2187Point ptClient = clientUnits ? pt : PointUtil.RootToClient(pt, inputSource);
2194Point ptScreen = PointUtil.ClientToScreen(ptClient, source);
2222Point ptClientHit = PointUtil.ScreenToClient(ptScreen, sourceHit);
2230internal static IInputElement LocalHitTest(bool clientUnits, Point pt, PresentationSource inputSource)
2239internal static IInputElement LocalHitTest(Point ptClient, PresentationSource inputSource)
2251private static void LocalHitTest(bool clientUnits, Point pt, PresentationSource inputSource, out IInputElement enabledHit, out IInputElement originalHit)
2262Point rootPt = clientUnits ? PointUtil.ClientToRoot(pt, inputSource) : pt;
2268internal bool IsSameSpot(Point newPosition, StylusDevice stylusDevice)
2278internal int CalculateClickCount(MouseButton button, int timeStamp, StylusDevice stylusDevice, Point downPt)
2306internal Point PositionRelativeToOver
2314internal Point NonRelativePosition
2409private Point _positionRelativeToOver = new Point();
2410private Point _lastPosition = new Point();
2420private Point _lastClick = new Point();
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimation.cs (32)
45private Point[] _keyValues;
60Type typeofProp = typeof(Point?);
69new PropertyMetadata((Point?)null, propCallback),
76new PropertyMetadata((Point?)null, propCallback),
83new PropertyMetadata((Point?)null, propCallback),
107public PointAnimation(Point toValue, Duration duration)
119public PointAnimation(Point toValue, Duration duration, FillBehavior fillBehavior)
132public PointAnimation(Point fromValue, Point toValue, Duration duration)
145public PointAnimation(Point fromValue, Point toValue, Duration duration, FillBehavior fillBehavior)
218protected override Point GetCurrentValueCore(Point defaultOriginValue, Point defaultDestinationValue, AnimationClock animationClock)
235Point from = new Point();
236Point to = new Point();
237Point accumulated = new Point();
238Point foundation = new Point();
352Point accumulator = AnimatedTypeHelpers.SubtractPoint(to, from);
377_keyValues = new Point[2];
384_keyValues = new Point[2];
391_keyValues = new Point[1];
398_keyValues = new Point[1];
404_keyValues = new Point[1];
425Point? typedValue = (Point?)value;
445public Point? From
449return (Point?)GetValue(FromProperty);
465public Point? To
469return (Point?)GetValue(ToProperty);
485public Point? By
489return (Point?)GetValue(ByProperty);
Core\CSharp\System\Windows\Media\ByteStreamGeometryContext.cs (23)
91public override void BeginFigure(Point startPoint, bool isFilled, bool isClosed)
125public override void LineTo(Point point, bool isStroked, bool isSmoothJoin)
131Point* scratchForLine = stackalloc Point[1];
150public override void QuadraticBezierTo(Point point1, Point point2, bool isStroked, bool isSmoothJoin)
156Point* scratchForQuadraticBezier = stackalloc Point[2];
176public override void BezierTo(Point point1, Point point2, Point point3, bool isStroked, bool isSmoothJoin)
182Point* scratchForBezier = stackalloc Point[3];
198public override void PolyLineTo(IList<Point> points, bool isStroked, bool isSmoothJoin)
213public override void PolyQuadraticBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin)
228public override void PolyBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin)
248public override void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection, bool isStroked, bool isSmoothJoin)
678_lastSegmentSize = (UInt32)(sizeof(MIL_SEGMENT_POLY) + (sizeof(Point) * _currentPolySegmentData.Count));
711private void GenericPolyTo(IList<Point> points,
740Point p = points[i];
744AppendData((byte*)&p, sizeof(Point));
755unsafe private void GenericPolyTo(Point* points,
772AppendData((byte*)points, sizeof(Point) * count);
Core\CSharp\System\Windows\Media\EllipseGeometry.cs (17)
63Point center,
76Point center,
101Point currentCenter = Center;
166internal static Rect GetBoundsHelper(Pen pen, Matrix worldMatrix, Point center, double radiusX, double radiusY,
194Point * pPoints = stackalloc Point[(int)c_pointCount];
222internal override bool ContainsInternal(Pen pen, Point hitPoint, double tolerance, ToleranceType type)
226Point *pPoints = stackalloc Point[(int)GetPointCount()];
287Point [] points = GetPointList();
341Point[] points = GetPointList();
367private Point[] GetPointList()
369Point[] points = new Point[GetPointCount()];
373fixed(Point *pPoints = points)
386private unsafe static void GetPointList(Point * points, uint pointsCount, Point center, double radiusX, double radiusY)
Core\CSharp\System\Windows\Media\Geometry.cs (8)
172Point* pPoints,
363public bool FillContains(Point hitPoint, double tolerance, ToleranceType type)
372public bool FillContains(Point hitPoint)
384public bool StrokeContains(Pen pen, Point hitPoint, double tolerance, ToleranceType type)
406internal virtual bool ContainsInternal(Pen pen, Point hitPoint, double tolerance, ToleranceType type)
475internal unsafe bool ContainsInternal(Pen pen, Point hitPoint, double tolerance, ToleranceType type,
476Point *pPoints, uint pointCount, byte *pTypes, uint typeCount)
525public bool StrokeContains(Pen pen, Point hitPoint)
Core\CSharp\System\Windows\Media\GlyphRun.cs (18)
135Point baselineOrigin,
137IList<Point> glyphOffsets,
230Point baselineOrigin,
232IList<Point> glyphOffsets,
288Point baselineOrigin,
290IList<Point> glyphOffsets,
339Point baselineOrigin,
341IList<Point> glyphOffsets,
895public Point BaselineOrigin
1170public IList<Point> GlyphOffsets
1231internal Point GetGlyphOffset(int i)
1340Point glyphOffset = GetGlyphOffset(i);
1511Point glyphOffset = GetGlyphOffset(i);
2374(_glyphOffsets == null ? null : ((_textFormattingMode != TextFormattingMode.Ideal) ? (IList<Point>)(new List<Point>()) : (IList<Point>)(new ThousandthOfEmRealPoints(_renderingEmSize, _glyphOffsets)))),
2500private Point _baselineOrigin;
2506private IList<Point> _glyphOffsets;
Core\CSharp\System\Windows\Media\LineGeometry.cs (13)
47public LineGeometry(Point startPoint, Point endPoint)
57Point startPoint,
58Point endPoint,
113internal static Rect GetBoundsHelper(Pen pen, Matrix worldMatrix, Point pt1, Point pt2,
127Point* pPoints = stackalloc Point[2];
154internal override bool ContainsInternal(Pen pen, Point hitPoint, double tolerance, ToleranceType type)
158Point *pPoints = stackalloc Point[2];
227Point startPoint = StartPoint;
228Point endPoint = EndPoint;
Core\CSharp\System\Windows\Media\PathStreamGeometryContext.cs (14)
52s_defaultValueForPathFigureStartPoint = (Point)PathFigure.StartPointProperty.GetDefaultValue(typeof(PathFigure));
121public override void BeginFigure(Point startPoint, bool isFilled, bool isClosed)
171public override void LineTo(Point point, bool isStroked, bool isSmoothJoin)
185public override void QuadraticBezierTo(Point point1, Point point2, bool isStroked, bool isSmoothJoin)
200public override void BezierTo(Point point1, Point point2, Point point3, bool isStroked, bool isSmoothJoin)
216public override void PolyLineTo(IList<Point> points, bool isStroked, bool isSmoothJoin)
227public override void PolyQuadraticBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin)
238public override void PolyBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin)
249public override void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection, bool isStroked, bool isSmoothJoin)
325private void GenericPolyTo(IList<Point> points,
486private static Point s_defaultValueForPathFigureStartPoint;
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (13)
233Point * pPoints = stackalloc Point[(int)pointCount];
261internal override bool ContainsInternal(Pen pen, Point hitPoint, double tolerance, ToleranceType type)
277Point *pPoints = stackalloc Point[(int)pointCount];
345Point[] points = GetPointList(rect, radiusX, radiusY);
382new Point[]
442Point[] points = GetPointList(rect, radiusX, radiusY);
475private Point[] GetPointList(Rect rect, double radiusX, double radiusY)
478Point[] points = new Point[pointCount];
482fixed(Point *pPoints = points)
495private unsafe static void GetPointList(Point * points, uint pointsCount, Rect rect, double radiusX, double radiusY)
Core\CSharp\System\Windows\Media\StreamGeometryContext.cs (11)
100public abstract void BeginFigure(Point startPoint, bool isFilled, bool isClosed);
105public abstract void LineTo(Point point, bool isStroked, bool isSmoothJoin);
110public abstract void QuadraticBezierTo(Point point1, Point point2, bool isStroked, bool isSmoothJoin);
115public abstract void BezierTo(Point point1, Point point2, Point point3, bool isStroked, bool isSmoothJoin);
120public abstract void PolyLineTo(IList<Point> points, bool isStroked, bool isSmoothJoin);
125public abstract void PolyQuadraticBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin);
130public abstract void PolyBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin);
139public abstract void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection, bool isStroked, bool isSmoothJoin);
Core\CSharp\System\Windows\Media\TextFormatting\TextEmbeddedObject.cs (1)
87Point origin,
Core\CSharp\System\Windows\Media\TextFormatting\TextLine.cs (1)
63Point origin,
Shared\MS\Internal\PointUtil.cs (18)
39public static Point ClientToRoot(Point point, PresentationSource presentationSource)
46public static Point TryClientToRoot(Point point, PresentationSource presentationSource, bool throwOnError, out bool success)
77public static Point RootToClient(Point point, PresentationSource presentationSource)
94public static Point ApplyVisualTransform(Point point, Visual v, bool inverse)
104public static Point TryApplyVisualTransform(Point point, Visual v, bool inverse, bool throwOnError, out bool success)
182public static Point ClientToScreen(Point pointClient, PresentationSource presentationSource)
209internal static Point ScreenToClient(Point pointScreen, PresentationSource presentationSource)
310Point corner1 = ClientToScreen(rectClient.TopLeft, hwndSource);
311Point corner2 = ClientToScreen(rectClient.BottomRight, hwndSource);
408internal static NativeMethods.POINT FromPoint(Point point)
422internal static Point ToPoint(NativeMethods.POINT pt)
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (23)
94internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
206internal override ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
381internal override void BringPointIntoViewAsync(Point point, object userState)
507internal override void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState)
833Point newSuggestedOffset;
874Point offset;
973private ITextPointer GetPositionAtNextPageCore(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved, out int pageNumber)
992Point point = TransformToDescendant(pageTextView.RenderScope, suggestedOffset);
1073private DocumentPageTextView GetTextViewFromPoint(Point point, bool snap)
1284private Point TransformToAncestor(Visual innerScope, Point point)
1298private Point TransformToDescendant(Visual innerScope, Point point)
1369Point point;
1400newPosition = pageTextView.GetTextPositionFromPoint((Point)pageTextView.RenderScope.RenderSize, true);
1445Point suggestedOffset = point;
1614internal BringPointIntoViewRequest(Point point, object userState)
1620internal readonly Point Point;
1653internal BringPageIntoViewRequest(ITextPointer position, Point suggestedOffset, int count, object userState)
1664internal readonly Point SuggestedOffset;
1667internal Point NewSuggestedOffset;
src\Framework\MS\Internal\Documents\TextBoxView.cs (10)
604ITextPointer ITextView.GetTextPositionFromPoint(Point point, bool snapToText)
804ITextPointer ITextView.GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
1028void ITextView.BringPointIntoViewAsync(Point point, object userState)
1050void ITextView.BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState)
1079/// <see cref="ITextView.Validate(Point)"/>
1081bool ITextView.Validate(Point point)
1644private int GetLineIndexFromPoint(Point point, bool snapToText)
2008private Point TransformToDocumentSpace(Point point)
src\Framework\MS\Internal\Documents\TextDocumentView.cs (18)
69internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
252Point point = new Point(suggestedX, 0);
432internal CellInfo GetCellInfoFromPoint(Point point, Table tableFilter)
688private ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, bool snapToText, bool snapToTextInFloatingElements)
751private ITextPointer GetTextPositionFromPoint(ParagraphResult paragraph, Point point, bool snapToText)
908private ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, bool snapToText)
970private CellInfo GetCellInfoFromPoint(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, Table tableFilter)
1015private CellInfo GetCellInfoFromPoint(ParagraphResult paragraph, Point point, Table tableFilter)
1090private CellInfo GetCellInfoFromPoint(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, Table tableFilter)
1840private int GetColumnFromPoint(ReadOnlyCollection<ColumnResult> columns, Point point, bool snapToText)
1972private int GetParagraphFromPoint(ReadOnlyCollection<ParagraphResult> paragraphs, Point point, bool snapToText)
2100private int GetParagraphFromPointInFloatingElements(ReadOnlyCollection<ParagraphResult> floatingElements, Point point, bool snapToText)
2114Point midPoint = new Point(paragraphBox.X + paragraphBox.Width / 2, paragraphBox.Y + paragraphBox.Height / 2);
3327private void TransformToContent(ref Point point)
3329Point newPoint;
3389private void TransformFromContent(ref Point point)
3391Point newPoint;
3427private static void TransformToSubpage(ref Point point, Vector subpageOffset)
src\Framework\MS\Internal\Documents\TextParagraphView.cs (5)
70internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
349internal static ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<LineResult> lines, Point point, bool snapToText)
555internal static int GetLineFromPoint(ReadOnlyCollection<LineResult> lines, Point point, bool snapToText)
592private static bool GetVerticalLineFromPoint(ReadOnlyCollection<LineResult> lines, Point point, bool snapToText, out int lineIndex)
719private static bool GetHorizontalLineFromPoint(ReadOnlyCollection<LineResult> lines, Point point, bool snapToText, ref int lineIndex)
src\Framework\MS\Internal\Documents\TextViewBase.cs (15)
39internal abstract ITextPointer GetTextPositionFromPoint(Point point, bool snapToText);
79internal virtual ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
193internal virtual void BringPointIntoViewAsync(Point point, object userState)
227internal virtual void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState)
230Point newSuggestedOffset;
258/// <see cref="ITextView.Validate(Point)"/>
260internal virtual bool Validate(Point point)
469ITextPointer ITextView.GetTextPositionFromPoint(Point point, bool snapToText)
509ITextPointer ITextView.GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
573void ITextView.BringPointIntoViewAsync(Point point, object userState)
589void ITextView.BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState)
611/// <see cref="ITextView.Validate(Point)"/>
613bool ITextView.Validate(Point point)
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (40)
139List<Point> points = new List<Point>();
142Point point = (Point)( stylusPoints[x] );
191List<Point> points = new List<Point>();
194points.Add((Point)stylusPoints[x]);
196Point[] lassoPoints = _lassoHelper.AddPoints(points);
207List<Point> points = new List<Point>();
210Point point = (Point)( stylusPoints[x] );
374Point[] points = GeneratePointGrid(elementPoints);
432private Point[] GeneratePointGrid(ElementCornerPoints elementPoints)
436return new Point[]{};
459Point[] retPointArray = new Point[pointArray.Count];
468private void FillInPoints(ArrayList pointArray, Point point1, Point point2)
473Point midPoint = LassoSelectionBehavior.GeneratePointBetweenPoints(point1, point2);
494Point upperLeft,
495Point upperRight,
496Point lowerRight,
497Point lowerLeft)
502Point midPointLeft = LassoSelectionBehavior.GeneratePointBetweenPoints(upperLeft, lowerLeft);
503Point midPointRight = LassoSelectionBehavior.GeneratePointBetweenPoints(upperRight, lowerRight);
524private static Point GeneratePointBetweenPoints(Point point1, Point point2)
541private bool PointsAreCloseEnough(Point point1, Point point2)
597private void StartLasso(List<Point> points)
626Point[] lassoPoints = _lassoHelper.AddPoints(points);
645private void TapSelectObject(Point point, out Stroke tappedStroke, out UIElement tappedElement)
658Point pointOnInnerCanvas = transformToInnerCanvas.Transform(point);
676private Point _startPoint;
697internal Point UpperLeft;
698internal Point UpperRight;
699internal Point LowerRight;
700internal Point LowerLeft;
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (19)
169Point point = FindColumnHeaderPositionByCurrentPosition(_columnHeaderDragCurrentPosition, true);
514Point mousePosition = e.GetPosition(this);
635private void PrepareColumnHeaderDrag(DataGridColumnHeader header, Point pos, Point relativePos)
647private static bool CheckStartColumnHeaderDrag(Point currentPos, Point originalPos)
881private int FindDisplayIndexByPosition(Point startPos, bool findNearestColumn)
883Point headerPos;
893private DataGridColumnHeader FindColumnHeaderByPosition(Point startPos)
895Point headerPos;
905private Point FindColumnHeaderPositionByCurrentPosition(Point startPos, bool findNearestColumn)
907Point headerPos;
932private void FindDisplayIndexAndHeaderPosition(Point startPos, bool findNearestColumn, out int displayIndex, out Point headerPos, out DataGridColumnHeader header)
936Point originPoint = new Point(0, 0);
1073private Point _columnHeaderDragStartPosition;
1074private Point _columnHeaderDragStartRelativePosition;
1075private Point _columnHeaderDragCurrentPosition;
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (20)
48private Point _startPoint; // Start point for current figure
49private Point _lastPoint; // Current end point for current figure
93private void GatherBounds(Point p)
116public override void BeginFigure(Point startPoint, bool isFilled, bool isClosed)
132public override void LineTo(Point point, bool isStroked, bool isSmoothJoin)
147public override void QuadraticBezierTo(Point point1, Point point2, bool isStroked, bool isSmoothJoin)
153public override void BezierTo(Point point1, Point point2, Point point3, bool isStroked, bool isSmoothJoin)
159public override void PolyLineTo(IList<Point> points, bool isStroked, bool isSmoothJoin)
183public override void PolyQuadraticBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin)
189public override void PolyBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin)
195public override void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection, bool isStroked, bool isSmoothJoin)
853public void _AddLine(Point startP, Point endP, Matrix transform)
975Point startPoint = pathFigure.StartPoint;
976Point lastPoint = startPoint;
990Point endPoint = (pathSegment as LineSegment).Point;
1002foreach (Point point in points)
src\Framework\System\Windows\Documents\ITextView.cs (13)
63ITextPointer GetTextPositionFromPoint(Point point, bool snapToText);
207ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved);
407void BringPointIntoViewAsync(Point point, object userState);
431void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState);
462bool Validate(Point point);
631public BringPointIntoViewCompletedEventArgs(Point point, ITextPointer position, bool succeeded, Exception error, bool cancelled, object userState)
642public Point Point
668private readonly Point _point;
816public BringPageIntoViewCompletedEventArgs(ITextPointer position, Point suggestedOffset, int count, ITextPointer newPosition, Point newSuggestedOffset, int pagesMoved, bool succeeded, Exception error, bool cancelled, object userState)
870public Point NewSuggestedOffset
902private readonly Point _newSuggestedOffset;
src\Framework\System\Windows\Standard\DpiHelper.cs (12)
24public static Point LogicalPixelsToDevice(Point logicalPoint, double dpiScaleX, double dpiScaleY)
36public static Point DevicePixelsToLogical(Point devicePoint, double dpiScaleX, double dpiScaleY)
46Point topLeft = LogicalPixelsToDevice(new Point(logicalRectangle.Left, logicalRectangle.Top), dpiScaleX, dpiScaleY);
47Point bottomRight = LogicalPixelsToDevice(new Point(logicalRectangle.Right, logicalRectangle.Bottom), dpiScaleX, dpiScaleY);
54Point topLeft = DevicePixelsToLogical(new Point(deviceRectangle.Left, deviceRectangle.Top), dpiScaleX, dpiScaleY);
55Point bottomRight = DevicePixelsToLogical(new Point(deviceRectangle.Right, deviceRectangle.Bottom), dpiScaleX, dpiScaleY);
63Point pt = LogicalPixelsToDevice(new Point(logicalSize.Width, logicalSize.Height), dpiScaleX, dpiScaleY);
70Point pt = DevicePixelsToLogical(new Point(deviceSize.Width, deviceSize.Height), dpiScaleX, dpiScaleY);
77Point topLeft = LogicalPixelsToDevice(new Point(logicalThickness.Left, logicalThickness.Top), dpiScaleX, dpiScaleY);
78Point bottomRight = LogicalPixelsToDevice(new Point(logicalThickness.Right, logicalThickness.Bottom), dpiScaleX, dpiScaleY);
src\Framework\System\Windows\Window.cs (49)
2184internal Point DeviceToLogicalUnits(Point ptDeviceUnits)
2187Point ptLogicalUnits = _swh.CompositionTarget.TransformFromDevice.Transform(ptDeviceUnits);
2196internal Point LogicalToDeviceUnits(Point ptLogicalUnits)
2199Point ptDeviceUnits = _swh.CompositionTarget.TransformToDevice.Transform(ptLogicalUnits);
2614var screenTopLeft = topLeftPointHelper.ScreenTopLeft.Value;
2760Point currentLocationLogicalUnits = DeviceToLogicalUnits(new Point(xDeviceUnits, yDeviceUnits));
2779Point requestedSizeDeviceUnits = LogicalToDeviceUnits(new Point(requestedWidth, requestedHeight));
2780Point requestedLocationDeviceUnits = LogicalToDeviceUnits(new Point(requestedLeft, requestedTop));
2842Point minSizeDeviceUnits = LogicalToDeviceUnits(new Point(MinWidth, MinHeight));
2843Point maxSizeDeviceUnits = LogicalToDeviceUnits(new Point(MaxWidth, MaxHeight));
2999Point newSizeDeviceUnits = LogicalToDeviceUnits(new Point(this.ActualWidth, this.ActualHeight));
3116Point ptDeviceUnits = LogicalToDeviceUnits(new Point(widthLogicalUnits, heightLogicalUnits));
3168Point sizeLogicalUnits = DeviceToLogicalUnits(new Point(rc.Width, 0));
3187Point sizeLogicalUnits = DeviceToLogicalUnits(new Point(0, rc.Height));
3543Point maxSizeLogicalUnits = DeviceToLogicalUnits(new Point(maxWidthDeviceUnits, maxHeightDeviceUnits));
3544Point minSizeLogicalUnits = DeviceToLogicalUnits(new Point(_trackMinWidthDeviceUnits, _trackMinHeightDeviceUnits));
3921Point ownerSizeDeviceUnits;
3937Point ownerLocationDeviceUnits = Owner.LogicalToDeviceUnits(new Point(Owner.Left, Owner.Top));
4085Point locationDeviceUnits = new Point(wp.rcNormalPosition_left, wp.rcNormalPosition_top);
4099Point sizeDeviceUnits = new Point(wp.rcNormalPosition_right - wp.rcNormalPosition_left,
4113Point sizeLogicalUnits = DeviceToLogicalUnits(new Point(rectDeviceUnits.Width, rectDeviceUnits.Height));
4114Point locationLogicalUnits = DeviceToLogicalUnits(new Point(rectDeviceUnits.X, rectDeviceUnits.Y));
4818Point windowSize = new Point(rc.right - rc.left, rc.bottom - rc.top);
4819Point ptLogicalUnits = DeviceToLogicalUnits(windowSize);
4987Point ptLogicalUnits = DeviceToLogicalUnits(new Point(rc.left, rc.top));
5098Point minSizeDeviceUnits = LogicalToDeviceUnits(new Point(finalMinMax.minWidth, finalMinMax.minHeight));
5099Point maxSizeDeviceUnits = LogicalToDeviceUnits(new Point(finalMinMax.maxWidth, finalMinMax.maxHeight));
5164Point ptLogicalUnits = DeviceToLogicalUnits(new Point(pt.x, pt.y));
5177Point mousePositionWRTResizeGripControl = ptLogicalUnits;
6025Point logicalSize = DeviceToLogicalUnits(new Point(rcHwnd.Width, rcHwnd.Height));
6063Point logicalSize = DeviceToLogicalUnits(new Point(rcHwnd.Width, rcHwnd.Height));
6125Point logicalSize = DeviceToLogicalUnits(new Point(rcHwnd.Width, rcHwnd.Height));
6162Point logicalSize = DeviceToLogicalUnits(new Point(rcHwnd.Width, rcHwnd.Height));
6268private Point TransformWorkAreaScreenArea(Point pt, TransformType transformType)
6272Point retPt;
6526Point ptDeviceUnits = LogicalToDeviceUnits(new Point(leftLogicalUnits, topLogicalUnits));
7487Point CompensateForPanningFeedback(Point point)
7493Point windowLocation = DeviceToLogicalUnits(new Point(rc.left, rc.top));
7717Point _prePanningLocation = new Point(double.NaN, double.NaN);
8097Point pt = new Point(0,0);
8125Point pt = new Point(
8309/// A helper class to convert (Left, Top) <see cref="Point"/> expressed
8329internal Point LogicalTopLeft { get; }
8334internal Point? ScreenTopLeft { get; private set; } = null;
8340internal WindowStartupTopLeftPointHelper(Point topLeft)
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (15)
80internal static DataObject DoDragMoveImpl(IEnumerable<WorkflowViewElement> draggedViewElements, Point referencePoint)
140public static DragDropEffects DoDragMove(WorkflowViewElement draggedViewElement, Point referencePoint)
646public static Point GetDragDropAnchorPoint(DragEventArgs e)
648Point referencePoint;
651referencePoint = (Point)e.Data.GetData(DragAnchorPointFormat);
729internal static Dictionary<WorkflowViewElement, Point> GetViewElementRelativeLocations(IEnumerable<WorkflowViewElement> viewElements)
732Dictionary<WorkflowViewElement, Point> locations = new Dictionary<WorkflowViewElement, Point>();
733Point topLeftPoint = new Point(double.PositiveInfinity, double.PositiveInfinity);
741Point location = new Point(0, 0);
768internal static Dictionary<WorkflowViewElement, Point> GetDraggedViewElementRelativeLocations(DragEventArgs e)
825public ViewElementDragShadow(UIElement owner, WorkflowViewElement viewElement, Point offset, double scaleFactor)
844public ViewElementDragShadow(UIElement owner, IEnumerable<WorkflowViewElement> viewElements, Point offset, double scaleFactor)
847Dictionary<WorkflowViewElement, Point> locations = DragDropHelper.GetViewElementRelativeLocations(viewElements);
929private void InitializeCommon(Point offset, double scaleFactor)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoSplitHelper.cs (30)
16public static void CalculateEntryExitEdges(Point mousePosition, Connector connector, out EdgeLocation entryEdge, out EdgeLocation exitEdge)
20Point srcLocation = FreeFormPanel.GetLocation(srcShape);
21Point destLocation = FreeFormPanel.GetLocation(destShape);
25Point srcCenter = new Point(srcLocation.X + (srcSize.Width / 2), srcLocation.Y + (srcSize.Height / 2));
26Point destCenter = new Point(destLocation.X + (destSize.Width / 2), destLocation.Y + (destSize.Height / 2));
54public static Point CalculateDropLocation(Point mousePosition, Point originalDropLocation, Connector connector, Size droppedSize, HashSet<Point> shapeLocations)
58Point srcLocation = FreeFormPanel.GetLocation(srcShape);
59Point destLocation = FreeFormPanel.GetLocation(destShape);
66internal static Point CalculateDropLocation(Point mousePosition, Point originalDropLocation, Size droppedSize, Point srcLocation, Point destLocation, Size srcSize, Size destSize, HashSet<Point> shapeLocations)
68Point dropLocation = originalDropLocation;
108internal static AutoSplitAlignment GetAlignment(Point mousePosition, Point targetLocation, Size targetSize)
123internal static Point CalculateDropLocationToAlignVertically(Point originalDropLocation, Size droppedSize, Point targetLocation, Size targetSize)
125Point dropLocation = originalDropLocation;
139internal static Point CalculateDropLocationToAlignHorizontally(Point originalDropLocation, Size droppedSize, Point targetLocation, Size targetSize)
141Point dropLocation = originalDropLocation;
155internal static EdgeLocation CalculateEdgeLocation(Point mousePosition, Point shapeCenter)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPoint.cs (10)
13public static readonly DependencyProperty LocationProperty = DependencyProperty.Register("Location", typeof(Point), typeof(ConnectionPoint));
42public Point Location
44get { return (Point)GetValue(ConnectionPoint.LocationProperty); }
109public List<Point> Edge
115Point topLeft = FreeFormPanel.GetLocation(parent);
121return new List<Point> { topLeft, new Point(topLeft.X, topLeft.Y + parentHeight) };
125return new List<Point> { new Point(topLeft.X + parentWidth, topLeft.Y), new Point(topLeft.X + parentWidth, topLeft.Y + parentHeight) };
129return new List<Point> { topLeft, new Point(topLeft.X + parentWidth, topLeft.Y) };
133return new List<Point> { new Point(topLeft.X, topLeft.Y + parentHeight), new Point(topLeft.X + parentWidth, topLeft.Y + parentHeight) };
145public static ConnectionPoint GetClosestConnectionPoint(List<ConnectionPoint> connectionPoints, Point refPoint, out double minDist)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (159)
55internal static Point[] Route(FreeFormPanel panel, Point srPoint, ConnectionPoint destConnPoint)
63internal static Point[] Route(FreeFormPanel panel, ConnectionPoint srcConnPoint, Point destPoint)
71internal static Point[] Route(FreeFormPanel panel, ConnectionPoint srcConnectionPoint, MouseEventArgs e)
74Point[] points = null;
99internal static Point[] Route(FreeFormPanel panel, ConnectionPoint srcConnPoint, ConnectionPoint destConnPoint)
108internal static Point GetDirection(Point from, Point to)
120static void AddExcludedAndSrcDestRects(FreeFormPanel outmostPanel, FreeFormPanel panel, Point srcPoint, Point destPoint, UIElement srcElement, UIElement destElement, List<Rect> excludedRects, List<Rect> srcDestRects)
133Rect rect = new Rect(Point.Add(panel.TranslatePoint(FreeFormPanel.GetLocation(child), outmostPanel), new Vector(margin.Left, margin.Top)), childSize);
163internal static Point[] Route(FreeFormPanel panel, Point srcPoint, Point destPoint, List<Point> srcEdge, List<Point> destEdge, UIElement srcElement, UIElement destElement)
171List<Point> excludedLines = new List<Point>();
190internal static Point[] Route(Point srcPoint, Point destPoint, List<Point> srcEdge, List<Point> destEdge, List<Rect> excludedRects, List<Point> excludedLines, List<Rect> srcDestRects)
218static Point[] TryRoute(Point srcPoint, Point destPoint, List<Rect> excludedRects, List<Point> excludedLines, List<Rect> srcDestRects)
220Point[] segments = GetRoutedLineSegments(srcPoint, destPoint, new Size(connectorMargin, connectorMargin), excludedRects.ToArray(), excludedLines.ToArray());
225segments = GetRoutedLineSegments(srcPoint, destPoint, new Size(connectorMargin, connectorMargin), excludedRects.ToArray(), new Point[] { });
231segments = GetRoutedLineSegments(srcPoint, destPoint, new Size(connectorMargin, connectorMargin), srcDestRects.ToArray(), new Point[] { });
238Point intermediatePoint = (slope < 1) ? new Point(destPoint.X, srcPoint.Y) : new Point(srcPoint.X, destPoint.Y);
239segments = new Point[] { srcPoint, intermediatePoint, destPoint };
241segments = RemoveRedundantPoints(new List<Point>(segments));
246internal static Point[] RemoveRedundantPoints(List<Point> points)
286static void AddBoundPoint(ref List<DistanceFromPoint> extremitiesList, Point p, ConnectorSegment segment, Point Z)
294internal static bool AreSegmentsValid(Point[] segments)
313static Nullable<Point> EscapeAlgorithm(CoverSet coverSet, Point Z,
314ref List<Point> escapePointsA, ref List<ConnectorSegment> horizontalSegmentsA, ref List<ConnectorSegment> verticalSegmentsA, ref List<ConnectorSegment> horizontalSegmentsB, ref List<ConnectorSegment> verticalSegmentsB,
317Nullable<Point> intersection = null;
380Nullable<Point> escapePoint = null;
387escapePointsA.Add((Point)escapePoint);
398escapePointsA.Add((Point)escapePoint);
408Point r1 = new Point(), r2 = new Point(), r3 = new Point(), r4 = new Point();
435Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Vertical,
447coverSet.AddUsedEscapeLine(new ConnectorSegment(r1, (Point)escape));
448escapePointsA.Add((Point)escape);
460Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Horizontal,
472coverSet.AddUsedEscapeLine(new ConnectorSegment(r2, (Point)escape));
473escapePointsA.Add((Point)escape);
485Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Vertical,
497coverSet.AddUsedEscapeLine(new ConnectorSegment(r3, (Point)escape));
498escapePointsA.Add((Point)escape);
510Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Horizontal,
522coverSet.AddUsedEscapeLine(new ConnectorSegment(r4, (Point)escape));
523escapePointsA.Add((Point)escape);
534static Nullable<Point> EscapeProcessI(CoverSet coverSet, Point Z,
561Point p = extremitiesList[i].P;
562Point direction = GetDirection(Z, p);
581Point escapePoint;
604static Nullable<Point> EscapeProcessII(CoverSet coverSet, Orientation orientation, ref List<Point> escapePointsA,
606Point R, Size margin, out bool intersectionFlag, out ConnectorSegment intersectionSegmentA, out ConnectorSegment intersectionSegmentB)
618Nullable<Point> intersection = h.Intersect(segment);
631Nullable<Point> intersection = v.Intersect(segment);
642Nullable<Point> escapePointI = null;
684static List<Point> FirstRefinementAlgorithm(List<Point> points, ConnectorSegment intersectionSegment)
686List<Point> refinedSet = new List<Point>();
691Point point;
721static Point[] GetRoutedLineSegments(Point begin, Point end, Size margin, Rect[] rectanglesToExclude, Point[] linesToExclude)
742Point A = begin;
743Point B = end;
746List<Point> escapePointsA = new List<Point>(); //escape points from begin to end
747List<Point> escapePointsB = new List<Point>(); //escape points from end to begin
766Nullable<Point> intersection = null;
782List<Point> tempList = escapePointsA;
786Point tempPoint = A;
810Point objectPoint = escapePointsA[escapePointsA.Count - 1];
821List<Point> tempList = escapePointsA;
825Point tempPoint = A;
853List<Point> refinedPath = new List<Point>();
862refinedPath.Add((Point)intersection);
883static void EraseRedundentWarps(CoverSet coverSet, ref List<Point> refinedPath)
889List<Point> newPath = new List<Point>();
893Point a1 = refinedPath[currentSegment];
894Point a2 = refinedPath[currentSegment + 1];
901Point b1 = refinedPath[intersectingSegment];
902Point b2 = refinedPath[intersectingSegment + 1];
905Nullable<Point> intersection = a.Intersect(b);
914newPath.Add((Point)intersection);
920List<Point> temp = refinedPath;
937static void SecondRefinementAlgorithm(CoverSet coverSet, ref List<Point> refinedPath, Size margin)
940List<Point> newPath = new List<Point>();
944Point a1 = refinedPath[currentSegment];
945Point a2 = refinedPath[currentSegment + 1];
953Point direction = GetDirection(a1, a2);
959Point k = new Point(a1.X + i * margin.Width * direction.X, a1.Y + i * margin.Height * direction.Y);
969Point c1 = refinedPath[intersectingSegment];
970Point c2 = refinedPath[intersectingSegment + 1];
973Nullable<Point> intersection = b.Intersect(c);
974if (intersection != null && c.IsPointOnSegment((Point)intersection))
984newPath.Add((Point)intersection);
989List<Point> temp = refinedPath;
1051public Point P;
1053public DistanceFromPoint(ConnectorSegment segment, Point z, Point p)
1065Point point1;
1066Point point2;
1068public ConnectorSegment(Point point1, Point point2)
1081public Point A
1089public Point B
1105public static ConnectorSegment ConstructBoundSegment(CoverSet coverSet, Point a, Point b)
1115public static ConnectorSegment ConstructBoundSegment(CoverSet coverSet, Point a, Orientation orientation)
1120public static ConnectorSegment SegmentFromBottomToTopCover(CoverSet coverSet, Point p)
1126Point bottom = new Point(p.X, (bottomCover != null) ? bottomCover.A.Y : int.MinValue);
1127Point top = new Point(p.X, (topCover != null) ? topCover.A.Y : int.MaxValue);
1132public static ConnectorSegment SegmentFromLeftToRightCover(CoverSet coverSet, Point p)
1138Point left = new Point((leftCover != null) ? leftCover.A.X : int.MinValue, p.Y);
1139Point right = new Point((rightCover != null) ? rightCover.A.X : int.MaxValue, p.Y);
1144public bool Covers(Point p)
1174public Point ExtendPointOutwards(Point p)
1194this.point1 = Point.Add(this.point1, new Vector(extendedLength, 0));
1195this.point2 = Point.Add(this.point2, new Vector(-extendedLength, 0));
1199this.point1 = Point.Add(this.point1, new Vector(-extendedLength, 0));
1200this.point2 = Point.Add(this.point2, new Vector(extendedLength, 0));
1207this.point1 = Point.Add(this.point1, new Vector(0, extendedLength));
1208this.point2 = Point.Add(this.point2, new Vector(0, -extendedLength));
1212this.point1 = Point.Add(this.point1, new Vector(0, -extendedLength));
1213this.point2 = Point.Add(this.point2, new Vector(0, extendedLength));
1228public Nullable<Point> Intersect(ConnectorSegment segment)
1251public bool IsPointOnSegment(Point p)
1264public ConnectorSegment PerpendicularThroughPoint(Point p)
1267Point newPoint = new Point(p.X, p.Y);
1281public bool PointLiesOnThisLine(Point p)
1303public CoverSet(Rect[] rectanglesToExclude, Point[] linesToExclude)
1351public bool EscapeLineHasBeenUsed(Point escapePoint)
1365public ConnectorSegment GetCover(Point p, DesignerEdges side)
1406public List<ConnectorSegment> GetCovers(Point p, DesignerEdges side)
1438public bool IsEscapePoint(Point origin, Point escape, DesignerEdges side)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (22)
25public static readonly DependencyProperty LocationProperty = DependencyProperty.RegisterAttached("Location", typeof(Point), typeof(FreeFormPanel), new FrameworkPropertyMetadata(new Point(-1, -1)));
190public static Point GetLocation(DependencyObject obj)
192return (Point)obj.GetValue(FreeFormPanel.LocationProperty);
195public static void SetLocation(DependencyObject obj, Point point)
249public void UpdateConnectorPoints(Connector connector, List<Point> points)
252foreach (Point point in points)
260static public List<Point> GetEdgeRelativeToOutmostPanel(ConnectionPoint connectionPoint)
265static public Point GetLocationRelativeToOutmostPanel(ConnectionPoint connectionPoint)
270public Point GetLocationRelativeToOutmostPanel(Point location)
300internal static ConnectionPoint ConnectionPointHitTest(Point hitPoint, ConnectionPointsAdorner adorner)
306internal static ConnectionPoint ConnectionPointHitTest(Point hitPoint, List<ConnectionPoint> connectionPoints, FreeFormPanel panel)
330Point pt = new Point(0, 0);
402Point pt = new Point(0, 0);
413Point srcPoint = FreeFormPanel.GetLocationRelativeToOutmostPanel(FreeFormPanel.GetSourceConnectionPoint(connectorChild));
414Point destPoint = FreeFormPanel.GetLocationRelativeToOutmostPanel(FreeFormPanel.GetDestinationConnectionPoint(connectorChild));
459static bool IsLocationValid(Point location)
597Point[] pts = ConnectorRouter.Route(this, FreeFormPanel.GetSourceConnectionPoint(connector), FreeFormPanel.GetDestinationConnectionPoint(connector));
598List<Point> points = new List<Point>(pts);
607void SaveConnectorEditor(Point pt)
614List<Point> points = this.connectorEditor.ConnectorEditorLocation;
System.Activities.Presentation\System\Activities\Presentation\View\AutoScrollHelper.cs (4)
31AutoScroll(e.GetPosition(scrollViewer), scrollViewer, logicalView != null ? e.GetPosition(logicalView) : (Point?)null, logicalView,
41public static void AutoScroll(Point position, ScrollViewer scrollViewer, double offsetPerScroll)
47static void AutoScroll(Point positionInScrollViewer, ScrollViewer scrollViewer, Point? positionInLogicalView, FrameworkElement logicalView, double scrollOnDragThresholdX, double scrollOnDragThresholdY, double scrollOnDragOffset)