Latest web development tutorials

ASP.NET CheckBoxList TextAlign property

The CheckBoxList The CheckBoxList

Definition and Usage

TextAlign property is used to get or set CheckBoxList item text text alignment.

grammar

<asp:CheckBoxList TextAlign="align" runat="server">
Some Content
</asp:CheckBoxList>

属性 描述
align 为列表项目规定文本的对齐方式。

可能的值:

  • Left
  • Right (默认)


Examples

The following examples set the TextAlign property CheckBoxList controls for "Left":

<form runat="server">
<asp:CheckBoxList id="rb1"
runat="server" TextAlign="Left">

Some content

</asp:CheckBoxList>
</form>

The demonstration >>

The CheckBoxList The CheckBoxList