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