Garry's Mod Wiki

Revision Difference

DScrollPanel:Clear#546558

<function name="Clear" parent="DScrollPanel" type="panelfunc"> <ispanel>yes</ispanel> <description>Clears the `DScrollPanel`'s canvas, removing all added items.</description> <realm>Client</realm> <file line="139-L143">lua/vgui/dscrollpanel.lua</file>⤶ </function> <example> <description>Recreation of this function.</description> <code> local panel = vgui.Create( "DScrollPanel" ) panel:GetCanvas():Clear() </code> <output>All entries in the DScrollPanel are removed.</output> </example>