Share via


Line.Draw(Vector2[],Color) Method (Microsoft.DirectX.Direct3D)

Draws a line strip in screen space. Input is in the form of an array that defines points (of Vector2) on the line strip.

Definition

Visual Basic Public Sub Draw( _
    ByVal vertexList() As Vector2, _
    ByVal color As ColorLeave Site _
)
C# public void Draw(
    Vector2[] vertexList,
    ColorLeave Site color
);
C++ public:
void Draw(
    array<Vector2>^ vertexList,
    ColorLeave Site color
);
JScript public function Draw(
    vertexList : Vector2[],
    color : ColorLeave Site
);

Parameters

vertexList Microsoft.DirectX.Vector2[]
Array of vertices that make up the line. For more information, see Vector2.
color System.Drawing.Color
A ColorLeave Site object that specifies the color of the line.

Remarks

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

InvalidDataException

The data is invalid.

See Also