ASP.NET CheckBoxList TextAlign属性


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 控件 其他扩展