DListView/GetSelectedLine

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
{{PanelFunc
 
{{PanelFunc
|Name=GetSelectedLine
+
|Description=Gets the currently selected {{Type|DListView_Line}} index.
|Parent=DListView
+
|Description=Gets the currently selected DListViewLine.
+
  
 
If {{ClassFunction|DListView|SetMultiSelect}} is set to true, only the first line of all selected lines will be returned. Use {{ClassFunction|DListView|GetSelected}} instead to get all of the selected lines.
 
If {{ClassFunction|DListView|SetMultiSelect}} is set to true, only the first line of all selected lines will be returned. Use {{ClassFunction|DListView|GetSelected}} instead to get all of the selected lines.

Revision as of 19:00, 27 November 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.
Personal tools
Navigation