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 屬性