Garry's Mod Wiki

Panel:HasParent

  boolean Panel:HasParent( Panel parentPanel )

Description

Returns whether the panel is a descendent of the given panel.

Arguments

1 Panel parentPanel

Returns

1 boolean
True if the panel is contained within parentPanel.