Garry's Mod Wiki

Garry's Mod Wiki

Description

This is used internally - although you're able to use it you probably shouldn't.

A panel used by DListView

View source

Parent

Derives methods, etc not listed on this page from Panel.

Implements

Implements or overrides the following hooks/methods. If you want to override these, you probably want to call the original function too.

Events

DListView_Line:OnRightClick()
Called when the player right clicks this line.
DListView_Line:OnSelect()
Called when the player selects this line.

Methods

DListView_Line:DataLayout( DListView pnl )
This is used internally - although you're able to use it you probably shouldn't. Called by DListView:DataLayout
boolean DListView_Line:GetAltLine()
Returns whether this line is odd or even in the list. This is internally used (and set) to change the looks of every other line.
string DListView_Line:GetColumnText( number column )
Gets the string held in the specified column of a DListView_Line panel. This is the same thing as doing DListView_Line:GetValue( column_number ).
number DListView_Line:GetID()
Returns the ID of this line, set automatically in DListView:AddLine.
DListView DListView_Line:GetListView()
Returns the parent DListView of this line.
any DListView_Line:GetSortValue( number column )
Returns the data stored on given cell of this line. Used in the DListView:SortByColumn function in case you want to sort with something else than the text.
string DListView_Line:GetValue( number column )
Alias of DListView_Line:GetColumnText. Overrides Panel:GetValue.
boolean DListView_Line:IsLineSelected()
Returns whether this line is selected.
DListView_Line:SetAltLine( boolean alt )
This is used internally - although you're able to use it you probably shouldn't. Sets whether this line is odd or even in the list. This is internally used (and set automatically) to change the looks of every other line.
DLabel DListView_Line:SetColumnText( number column, string value )
Sets the string held in the specified column of a DListView_Line panel.
DListView_Line:SetID( number id )
This is used internally - although you're able to use it you probably shouldn't. Sets the ID of this line, used internally by DListView:AddLine.
DListView_Line:SetListView( DListView pnl )
This is used internally - although you're able to use it you probably shouldn't. Sets the parent DListView for this line. Used internally by DListView:AddLine.
DListView_Line:SetSelected( boolean selected )
Sets whether this line is selected or not.
DListView_Line:SetSortValue( number column, any data )
Allows you to store data per column. Used in the DListView:SortByColumn function in case you want to sort with something else than the text.
DLabel DListView_Line:SetValue( number column, string value )
Alias of DListView_Line:SetColumnText.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...