API Frame CreateLine

Draws a line.
 line = Frame:CreateLine([name, drawLayer, templateName, subLevel])
==Arguments==
:;name:
:;drawLayer:
:;templateName:
:;subLevel: - The level of the sublayer if anything else overlaps.
==Returns==
:;line: - The new line object as a child of this frame.
==Example==
Draws a diagonal red line with a default thickness of 4.
local l = UIParent:CreateLine()
l:SetColorTexture(1, 0, 0)
l:SetStartPoint("CENTER", -50, 50) -- start topleft
l:SetEndPoint("CENTER", 50, -50) -- end bottomright
API_Frame_CreateLine_01.png|link=