|
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
|
Tradução
Original
|
Estrutura Point
Namespace: System.Windows
Assembly: WindowsBase (em WindowsBase.dll)
XMLNS para XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
O tipo Point expõe os membros a seguir.
| Nome | Descrição | |
|---|---|---|
![]() ![]() | Add | |
![]() | Equals(Object) | |
![]() | Equals(Point) | |
![]() ![]() | Equals(Point, Point) | |
![]() | GetHashCode | |
![]() | GetType | |
![]() ![]() | Multiply | |
![]() | Offset | |
![]() ![]() | Parse | |
![]() ![]() | Subtract(Point, Point) | |
![]() ![]() | Subtract(Point, Vector) | |
![]() | ToString() | |
![]() | ToString(IFormatProvider) |
| Nome | Descrição | |
|---|---|---|
![]() ![]() | Addition | |
![]() ![]() | Equality | |
![]() ![]() | Explicit(Point to Vector) | |
![]() ![]() | Explicit(Point to Size) | |
![]() ![]() | Inequality | |
![]() ![]() | Multiply | |
![]() ![]() | Subtraction(Point, Point) | |
![]() ![]() | Subtraction(Point, Vector) |
| Nome | Descrição | |
|---|---|---|
![]() ![]() | IFormattable.ToString |
' Checks if two Points are equal using the overloaded inequality operator. Private Function pointInequalityExample() As Boolean ' Checks if two Points are not equal using the overloaded inequality operator. ' Declaring point1 and initializing x,y values Dim point1 As New Point(10, 5) ' Declaring point2 without initializing x,y values Dim point2 As New Point() ' Boolean to hold the result of the comparison Dim areNotEqual As Boolean ' assigning values to point2 point2.X = 15 point2.Y = 40 ' Compare Point structures for equality. ' areNotEqual is True areNotEqual = (point1 <> point2) Return areNotEqual End Function
// Checks if two Points are equal using the overloaded inequality operator. private Boolean pointInequalityExample() { // Checks if two Points are not equal using the overloaded inequality operator. // Declaring point1 and initializing x,y values Point point1 = new Point(10, 5); // Declaring point2 without initializing x,y values Point point2 = new Point(); // Boolean to hold the result of the comparison Boolean areNotEqual; // assigning values to point2 point2.X = 15; point2.Y = 40; // Compare Point structures for equality. // areNotEqual is True areNotEqual = (point1 != point2); return areNotEqual; }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Função Server Core sem suporte), Windows Server 2008 R2 (Função Server Core com suporte com o SP1 ou posterior, Itanium sem suporte)
O .NET Framework não oferece suporte a todas as versões de cada plataforma. Para obter uma lista das versões com suporte, consulte .Requisitos de sistema do NET Framework.
