Garry's Mod Wiki

DScrollPanel:Clear

Description

Clears the DScrollPanel's canvas, removing all added items.

Example

Recreation of this function.

local panel = vgui.Create( "DScrollPanel" ) panel:GetCanvas():Clear()
Output: All entries in the DScrollPanel are removed.