Box Structure (Microsoft.DirectX.Direct3D)

Defines a volume.

Definition

Visual Basic Public Structure Box
C# public struct Box 
C++ public value class Box sealed 
JScript In JScript, you can use structures, but you cannot define your own.

Members Table

The following table lists the members exposed by the object.

Methods

Method Description
Box Creates a new instance of the Box structure.
ToString Obtains a string representation of the current instance.

Properties

Property Description
Back Retrieves or sets the position of the back of a box on the z-axis.
Bottom Retrieves or sets the position of the bottom of a box on the y-axis.
Front Retrieves or sets the position of the front of a box on the z-axis.
Left Retrieves or sets the position of the left side of a box on the x-axis.
Right Retrieves or sets the position of the right side of a box on the x-axis.
Top Retrieves or sets the position of the top of a box on the y-axis.

Remarks

The Box structure includes the left, top, and front edges, but not the right, bottom, or back edges. For example, a box that is 100 units wide and begins at 0 (thus, including the points up to and including 99) would be expressed with a value of 0 for the Left member and a value of 100 for the Right member. Note that a value of 99 is not used for the Right member.

The restrictions on side ordering for Box are left to right, top to bottom, and front to back.

Structure Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll)
Strong Name Microsoft.DirectX.Direct3D,  Version=1.0.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492