DListView/GetSelectedLine

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
 
Line 7: Line 7:
 
|type=number
 
|type=number
 
|desc=The index of the currently selected line.
 
|desc=The index of the currently selected line.
 +
}}
 +
{{Ret
 +
|type=Panel
 +
|desc=The currently selected {{Type|DListView_Line}}.
 +
 +
{{NextUpdate}}
 
}}
 
}}

Latest revision as of 18:16, 2 December 2019

 DListView:GetSelectedLine( )

DescriptionPanelFunc

Gets the currently selected DListView_Line index.

If DListView:SetMultiSelect is set to true, only the first line of all selected lines will be returned. Use DListView:GetSelected instead to get all of the selected lines.

Returns

number

The index of the currently selected line.

Returns

Panel

The currently selected DListView_Line.


Next Update Change

This feature is only available in the next update.
Personal tools
Navigation