ערוך

שתף באמצעות


Point Struct

Definition

Represents an x- and y-coordinate pair in two-dimensional space. Can also represent a logical point for certain property usages.

public value class Point : IFormattable
[System.Security.SecurityCritical]
public struct Point : IFormattable
[<System.Security.SecurityCritical>]
type Point = struct
    interface IFormattable
Public Structure Point
Implements IFormattable
Inheritance
Attributes
Implements

Remarks

This represents the .NET projection of the Windows Runtime (WinRT) Point struct. For more information, see Point in the UWP API reference.

Constructors

Point(Double, Double)

Initializes a Point struct that contains the specified values.

Properties

X

Gets or sets the X-coordinate value of this Point struct.

Y

Gets or sets the Y-coordinate value of this Point.

Methods

Equals(Object)

Determines whether the specified object is a Point and whether it contains the same values as this Point.

Equals(Point)

Compares two Point structs for equality.

GetHashCode()

Returns the hash code for this Point.

ToString()

Creates a String representation of this Point.

ToString(IFormatProvider)

Creates a String representation of this Point using the specified culture-specific formatting information.

Operators

Equality(Point, Point)

Compares two Point structs for equality.

Inequality(Point, Point)

Compares two Point structs for inequality.

Explicit Interface Implementations

IFormattable.ToString(String, IFormatProvider)

For a description of this member, see ToString(String, IFormatProvider).

Extension Methods

ToVector2(Point)

Applies to

See also