property Face.Neighbor (RotateDir as RotateEnum) as Face
Retrieves the neighbor of the face in giving direction.

TypeDescription
RotateDir as RotateEnum A RotateEnum expression that specifies the direction to request the neighbor face.
Face A Face object being requested.
The Neighbor property retrieves the neighbor of the face in giving direction. The Index property gets the index of the face. The Face property returns the giving face. Use the Rotate method to rotate the cube in a direction.