Microsoft DirectX 9.0 SDK Update (October 2004)

Box Structure

Language:

Note: This documentation is preliminary and is subject to change.

Defines a volume.

Definition

Visual Basic .NET Public Structure Box
C# public struct Box
Managed C++ public __value struct Box
JScript .NET In JScript .NET, you can use structures, but you cannot define your own.

Members Table

Method Description
Box Creates a new instance of the Box structure.
ToString Obtains a string representation of the current instance.
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.2902.0,  Culture=neutral,  PublicKeyToken=31bf3856ad364e35

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center