Garry's Mod Wiki

DListView:GetLines

  table DListView:GetLines()

Description

Gets all of the lines added to the DListView.

Returns

1 table
The lines added to the DListView.

Example

Loops through all of the lines of a DListView and prints their first value.

local list = vgui.Create( "DListView" ) list:AddColumn( "Fruit" ) for _, line in ipairs( { "Apple", "Orange", "Banana" } ) do list:AddLine( line ) end for k, line in ipairs( list:GetLines() ) do print( k, line:GetValue( 1 ) ) end
Output:
1 Apple 2 Orange 3 Banana
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy