ASP.NET CheckBoxList TextAlign 屬性


CheckBoxList 控件 CheckBoxList 控件

定義和用法

TextAlign 屬性用於獲取或設置 CheckBoxList 專案的文本的文本對齊方式。

語法

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

屬性 描述
align 為列表專案規定文本的對齊方式。

可能的值:

  • Left
  • Right (默認)


實例

下麵的實例把 CheckBoxList 控件中的 TextAlign 屬性設置為 "Left":

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

Some content

</asp:CheckBoxList>
</form>


CheckBoxList 控件 CheckBoxList 控件