method TreeCube.Rotate (Dir as RotateEnum)
Rotates the cube in a direction.

TypeDescription
Dir as RotateEnum A RotateEnum expression that indicates the direction to rotate the cube. 
Use the Rotate method to programmatically rotate the cube, in a specified direction. The control fires the Rotate event when the cube is rotated. Use the AllowRotate property to specify the directions where the user can rotate the cube, by dragging. Use the RotX and RotY properties to specify the rotation angles. The Neighbor property retrieves the neighbor of the face in giving direction.