Point Structure

 

Represents an x- and y-coordinate pair in two-dimensional space.

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

[<Sealed>]
[<SerializableAttribute>]
[<TypeConverterAttribute(typeof(PointConverter))>]
type Point = 
    struct
        interface IFormattable
    end

NameDescription
System_CAPS_pubmethodPoint(Double, Double)

Creates a new Point structure that contains the specified coordinates.

NameDescription
System_CAPS_pubpropertyX

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

System_CAPS_pubpropertyY

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAdd(Point, Vector)

Adds a Vector to a Point and returns the result as a Point structure.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified Object is a Point and whether it contains the same coordinates as this Point. (Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodEquals(Point)

Compares two Point structures for equality.

System_CAPS_pubmethodSystem_CAPS_staticEquals(Point, Point)

Compares two Point structures for equality.

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this Point.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticMultiply(Point, Matrix)

Transforms the specified Point structure by the specified Matrix structure.

System_CAPS_pubmethodOffset(Double, Double)

Offsets a point's X and Y coordinates by the specified amounts.

System_CAPS_pubmethodSystem_CAPS_staticParse(String)

Constructs a Point from the specified String.

System_CAPS_pubmethodSystem_CAPS_staticSubtract(Point, Point)

Subtracts the specified Point from another specified Point and returns the difference as a Vector.

System_CAPS_pubmethodSystem_CAPS_staticSubtract(Point, Vector)

Subtracts the specified Vector from the specified Point and returns the resulting Point.

System_CAPS_pubmethodToString()

Creates a String representation of this Point. (Overrides ValueType.ToString().)

System_CAPS_pubmethodToString(IFormatProvider)

Creates a String representation of this Point.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticAddition(Point, Vector)

Translates the specified Point by the specified Vector and returns the result.

System_CAPS_puboperatorSystem_CAPS_staticEquality(Point, Point)

Compares two Point structures for equality.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(Point to Size)

Creates a Size structure with a Width equal to this point's X value and a Height equal to this point's Y value.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(Point to Vector)

Creates a Vector structure with an X value equal to the point's X value and a Y value equal to the point's Y value.

System_CAPS_puboperatorSystem_CAPS_staticInequality(Point, Point)

Compares two Point structures for inequality.

System_CAPS_puboperatorSystem_CAPS_staticMultiply(Point, Matrix)

Transforms the specified Point by the specified Matrix.

System_CAPS_puboperatorSystem_CAPS_staticSubtraction(Point, Point)

Subtracts the specified Point from another specified Point and returns the difference as a Vector.

System_CAPS_puboperatorSystem_CAPS_staticSubtraction(Point, Vector)

Subtracts the specified Vector from the specified Point and returns the resulting Point.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIFormattable.ToString(String, IFormatProvider)

This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. For a description of this member, see ToString.

In XAML, the delimiter between the X and Y values of a Point can be either a comma or a space.

Some cultures might use the comma character as the decimal delimiter instead of the period character. XAML processing for invariant culture defaults to en-US in most XAML processor implementations, and expects the period to be the decimal delimiter. You should avoid using the comma character as the decimal delimiter if specifying a Point in XAML, because that will clash with the string type conversion of a Point attribute value into the X and Y components.

<object property="x,y"/>
-or-
<object property="x y"/>

x

The x-coordinate of this Point.

y

The y-coordinate of this Point.

The following example shows how to check if two Point structures are not equal. It also illustrates how to assign values to a Point structure when the structure is being declared and after the structure has been declared.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: