ASP.NET TextAlign 屬性
定義和用法
TextAlign 屬性用于獲取或設置 CheckBoxList 項目的文本的文本對齊方式。
語法
<asp:CheckBoxList TextAlign="align" runat="server"> some content </asp:CheckBoxList>
屬性 | 描述 |
---|---|
align |
為列表項目規定文本的對齊方式。 可能的值:
|
實例
下面的例子把 CheckBoxList 控件中的 TextAlign 屬性設置為 "Left":
<form runat="server"> <asp:CheckBoxList id="rb1" runat="server" TextAlign="Left"> Some content </asp:CheckBoxList> </form>
實例
- 設置 CheckBoxList 控件的 TextAlign 屬性