Garry's Mod Wiki

Revision Difference

DScrollPanel:Clear#528471

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