Line Class

Language:

Implements line drawing using textured triangles.

Definition

Visual Basic NotInheritable Public Class Line
    Inherits MarshalByRefObject
    Implements IDisposable
C# public sealed class Line : MarshalByRefObject, IDisposable
C++ public ref class Line sealed : MarshalByRefObject, IDisposable
JScript public final class Line extends MarshalByRefObject implements IDisposable

Members Table

Event Description
Disposing Occurs when the Dispose method is called or when the Line object is finalized and collected by the garbage collector of the .NET common language runtime.
Lost Occurs when an object is lost, normally just before a device is reset.
Reset Occurs after the Line.OnResetDevice method is called or after the Line is reset.
Method Description
Begin Prepares a device to draw lines.
Dispose Immediately releases the unmanaged resources used by the Line object.
Draw Draws a line strip in screen space. Input is in the form of an array that defines points (of Vector2) on the line strip.
DrawTransform Draws a line strip in screen space with a specified input transformation matrix.
End Restores the device to the state it was in when Line.Begin was called.
Equals Returns a value that indicates whether the current instance is equal to a specified object.
Finalize Allows the Line object to free resources before it is destroyed by the garbage collector.
GetHashCode Returns the hash code for the current instance.
GetObjectByValue This member supports the infrastructure for Microsoft DirectX 9.0 for Managed Code and is not intended to be used directly from your code.
Line Uses a left-handed coordinate system to create a line.
OnLostDevice Releases all references to video memory resources and deletes all state blocks.
OnResetDevice Should be called after the device is reset and before any other methods are called, if Device.IsUsingEventHandlers is set to false.
static (Shared in Visual Basic) op_Equality Compares the current instance of a class to another instance to determine whether they are the same.
static (Shared in Visual Basic) op_Inequality Compares the current instance of a class to another instance to determine whether they are different.
raise_Disposing Raises the Microsoft.DirectX.Direct3D.Line.Disposing event when called from within a derived class.
raise_Lost Raises a Line.Lost event when called from within a derived class.
raise_Reset Raises a Line.Reset event when called from within a derived class.
UpdateUnmanagedPointer Updates the unmanaged pointer for this Line object. This method supports the Microsoft .NET Framework infrastructure and is not intended to be used directly in your code.
Property Description
Antialias Retrieves or sets the antialiasing switch value for a line.
Device Retrieves the Direct3D device associated with a line object.
Disposed Gets a value that indicates whether the object is disposed.
GlLines Retrieves or sets a value that switches between Microsoft Direct3D and OpenGL line-drawing modes.
Pattern Retrieves or sets the line stipple pattern.
PatternScale Retrieves or sets the stipple-pattern scale value.
UnmanagedComPointer Returns the unmanaged Component Object Model (COM) ID3DXLine interface pointer.
Width Retrieves or sets the thickness of a line.

Inheritance Hierarchy

Object Leave Site
MarshalByRefObject Leave Site
Line

Class Information

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

Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

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