DrawingBlockVisualCreateLine Method (Document, Vector3, Vector3, Double, Color) | 
 
            Create a new DrawingBlockVisual which contains a single line with a specific width.
            
 
    Namespace: 
   Demo3D.Visuals
    Assembly:
   Demo3D.Core (in Demo3D.Core.dll) Version: 18.03.00
Syntaxpublic static DrawingBlockVisual CreateLine(
	Document doc,
	Vector3 lineStart,
	Vector3 lineEnd,
	double lineWidth,
	Color lineColor
)
Parameters
- doc
 - Type: Demo3D.VisualsDocument
The document to add the visual to. - lineStart
 - Type: Microsoft.DirectXVector3
The start point of the line local to the new Visual. - lineEnd
 - Type: Microsoft.DirectXVector3
The end point of the line local to the new Visual. - lineWidth
 - Type: SystemDouble
The width of the new line. - lineColor
 - Type: System.DrawingColor
The color of the new line. 
Return Value
Type: 
DrawingBlockVisualA new DrawingBlockVisual which contains a single line.
See Also