Este tema aún no ha recibido ninguna valoración - Valorar este tema

StylusPoint.Equals (Método) (StylusPoint)

Returns whether the specified StylusPoint is equal to the current StylusPoint.

Espacio de nombres: System.Windows.Input
Ensamblado: PresentationCore (en presentationcore.dll)

public bool Equals (
	StylusPoint value
)
public final boolean Equals (
	StylusPoint value
)
public final function Equals (
	value : StylusPoint
) : boolean
No se pueden utilizar métodos en XAML.

Parámetros

value

The StylusPoint to compare to the current StylusPoint.

Valor devuelto

true if the StylusPoint objects are equal; otherwise, false.

The following example checks two StylusPoint objects for equality. Because the X, Y, and PressureFactor properties on point1 and point2 are set to the same value, the "The two StylusPoint objects are equal." Message appears.

            StylusPoint point1 = new StylusPoint();
            StylusPoint point2 = new StylusPoint();

            point1.X = 150;
            point1.Y = 400;
            point1.PressureFactor = 0.45f;

            point2.X = 150;
            point2.Y = 400;
            point2.PressureFactor = 0.45f;
...

            if (point2.Equals(point1))
            {
                MessageBox.Show("The two StylusPoint objects are equal.");
            }
            else
            {
                MessageBox.Show("The two StylusPoint objects are not equal.");
            }

Microsoft .NET Framework 3.0 es compatible con Windows Vista, Microsoft Windows XP SP2 y Windows Server 2003 SP1.

.NET Framework

Compatible con: 3.0
¿Te ha resultado útil?
(Caracteres restantes: 1500)

Adiciones de comunidad

AGREGAR
© 2013 Microsoft. Reservados todos los derechos.