Garry's Mod Wiki

Revision Difference

DListView_Column:SetTextAlign#524829

<function name="SetTextAlign" parent="DListView_Column" type="panelfunc"> <ispanel>yes</ispanel> <description>Sets the text alignment for the column</description> <realm>Client</realm> <args> <arg name="alignment" type="number">The direction of the content, based on the number pad. &amp;lt;table&amp;gt;⤶ &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;<key>7</key>: **top-left**&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;<key>8</key>: **top-center**&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;<key>9</key>: **top-right**&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;⤶ &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;<key>4</key>: **middle-left**&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;<key>5</key>: **center**&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;<key>6</key>: **middle-right**&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;⤶ &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;<key>1</key>: **bottom-left**&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;<key>2</key>: **bottom-center**&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;<key>3</key>: **bottom-right**&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;⤶ &amp;lt;/table&amp;gt;</arg>⤶ ⤶ | | | |⤶ | --- | --- | --- |⤶ | <key>7</key>: **top-left** | <key>8</key>: **top-center** | <key>9</key>: **top-right** |⤶ | <key>4</key>: **middle-left** | <key>5</key>: **center** | <key>6</key>: **middle-right** |⤶ | <key>1</key>: **bottom-left** | <key>2</key>: **bottom-center** | <key>3</key>: **bottom-right** |⤶ </arg>⤶ </args> </function>