DListView/GetLine

From Garry's Mod
Jump to: navigation, search
 DListView:GetLine( )

Contents

DescriptionPanelFunc

Gets the DListView_Line at the given index.

Arguments

number id

The index of the line to get.

Returns

Panel

The DListView_Line at the given index.

Examples

Example

An example of how to retrieve a DListView_Line from a DListView.

local list = vgui.Create( "DListView" )
list:AddColumn( "Name" )
list:AddLine( "Garry :D" )

print( list:GetLine( 1 ) )

Output:

Panel: [name:DListView_Line][class:Panel][0,0,64,24]
Personal tools
Navigation