Control.getLayoutCell

Returns the LayoutCell object which can be used to override properties of the parent control's layout as applied to this control. Returns null if no layout is configured on the parent control. The specific object returned will be an extension of LayoutCell that corresponds to the parent control's layout e.g. HorizontalBoxLayoutCell for Horizontal Box layout etc.

Further documentation.

returns LayoutCell