Garry's Mod Wiki

Panel:SetContentAlignment

  Panel:SetContentAlignment( number alignment )

Description

Sets the alignment of the contents.

This function only works on Label panels and its derivatives.

Arguments

1 number alignment
The direction of the content, based on the number pad.

1: bottom-left
2: bottom-center
3: bottom-right
4: middle-left
5: center
6: middle-right
7: top-left
8: top-center
9: top-right