Point3D.Y Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit la coordonnée y de cette structure Point3D.
public:
property double Y { double get(); void set(double value); };
public double Y { get; set; }
member this.Y : double with get, set
Public Property Y As Double
Valeur de propriété
Coordonnée y de cette structure Point3D.
Exemples
L’exemple suivant montre comment définir Point3D les propriétés.
// Checks if two Point3D structures are equal using the static Equals method.
Point3D point1 = new Point3D(10, 5, 1);
Point3D point2 = new Point3D(15, 40, 60);
Boolean areEqual;
areEqual = Point3D.Equals(point1, point2);
// areEqual is False
//Displaying Results
syntaxString = "areEqual = Point3D.Equals(point1, point2);";
resultType = "Boolean";
operationString = "Checking if 3D two points are equal";
ShowResults(areEqual.ToString(), syntaxString, resultType, operationString);
' Checks if two Point3D structures are equal using the static Equals method.
Dim point1 As New Point3D(10, 5, 1)
Dim point2 As New Point3D(15, 40, 60)
Dim areEqual As Boolean
areEqual = Point3D.Equals(point1, point2)
' areEqual is False
'Displaying Results
syntaxString = "areEqual = Point3D.Equals(point1, point2)"
resultType = "Boolean"
operationString = "Checking if 3D two points are equal"
ShowResults(areEqual.ToString(), syntaxString, resultType, operationString)