Garry's Mod Wiki

DListView_Line

DListView_Line

Description

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

A panel used by DListView

Parent

Derives from Panel.

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.
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: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.

Special Pages


Wikis

?

Render Time: 41ms

DB GetPage 23
Generate Html 4
SaveChanges (1) 6
Render Body 0
Render Sidebar 6