Share via


PointHelper Class

Definition

Provides helper methods to set Point values. C# code should use methods of Point instead.

public ref class PointHelper sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PointHelper final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PointHelper
Public NotInheritable Class PointHelper
Inheritance
Object Platform::Object IInspectable PointHelper
Attributes

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# code can use members of Point instead, because utility members are available directly on the structure due to .NET 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 C# developer could use directly on Point are available in a static form on the PointHelper class.

Methods

FromCoordinates(Single, Single)

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

Applies to

See also