Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PointHelper class

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

Inheritance

Object
  PointHelper

Syntax


public sealed class PointHelper

Members

The PointHelper class has these types of members:

Methods

The PointHelper class has these methods. It also inherits methods from the Object class.

MethodDescription
FromCoordinates 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.

 

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 APIs.

PointHelper is one of several Helper classes that are intended to provide utility methods for Windows Runtime structure values. C# and 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 Visual Basic developer could use directly on Point are available in a static form on the PointHelper class.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

See also

Object
Point
Quickstart: Handling pointer input

 

 

Show:
© 2015 Microsoft