PointHelper PointHelper PointHelper Class

Provides helper methods to set Point values. C# and Microsoft Visual Basic code should use methods of Point instead.

Syntax

Declaration

public sealed class PointHelperpublic sealed class PointHelperPublic NotInheritable Class PointHelper

Remarks

Point is a Windows Runtime structure that represents an X,Y position in a coordinate system. A Point is used as a value in many different Windows Runtime API.

PointHelper is one of several Helper classes that are intended to provide utility methods for Windows Runtime structure values. C# and Microsoft Visual Basic code can use members of Point instead, because utility members are available directly on the structure due to .NET Framework runtime support. C++ code can only access the X and Y data values on Point. For C++ developers, approximately the same utility features that a Microsoft Visual Basic developer could use directly on Point are available in a static form on the PointHelper class.

Methods summary

Creates a new Point value using x- and y-coordinate values in pixels. C# and Microsoft Visual Basic code should use Point(Double,Double) instead.

Methods

  • FromCoordinates(System.Single,System.Single)
    FromCoordinates(System.Single,System.Single)
    FromCoordinates(System.Single,System.Single)
    FromCoordinates(System.Single,System.Single)

    Creates a new Point value using x- and y-coordinate values in pixels. C# and Microsoft Visual Basic code should use Point(Double,Double) instead.

    public static Point FromCoordinates(System.Single x,System.Single y)public static Point FromCoordinates(System.Single x,System.Single y)Public Static Function FromCoordinates(x As System.Single,y As System.Single) As Point

    Parameters

    • x
      System.Single
      System.Single
      System.Single

      The pixel value to set for X.

    • y
      System.Single
      System.Single
      System.Single

      The pixel value to set for Y.

    Returns

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.UI.Xaml.dll