Revision Difference
DScrollPanel:Clear#550568
<function name="Clear" parent="DScrollPanel" type="panelfunc">
<ispanel>yes</ispanel>
<description>Clears the `DScrollPanel`'s canvas, removing all added items.</description>
<realm>Client</realm>⤶
<realm>Client and Menu</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>