Garry's Mod Wiki

Revision Difference

Panel:SetContentAlignment#550874

<function name="SetContentAlignment" parent="Panel" type="classfunc"> <description>Sets the alignment of the contents.</description> <realm>Client</realm>⤶ <realm>Client and Menu</realm>⤶ <args> <arg name="alignment" type="number">The direction of the content, based on the number pad. <key>1</key>: **bottom-left** <br/> <key>2</key>: **bottom-center** <br/> <key>3</key>: **bottom-right** <br/> <key>4</key>: **middle-left** <br/> <key>5</key>: **center** <br/> <key>6</key>: **middle-right** <br/> <key>7</key>: **top-left** <br/> <key>8</key>: **top-center** <br/> <key>9</key>: **top-right** <br/> <image src="DLabel_SetContentAlignment.gif"/></arg> </args> </function>