ASP.NET TextAlign 属性

定義と用法

TextAlign 属性は、RadioButtonList エレメントのテキストのテキストアライメントを取得または設定するために使用されます。

文法

<asp:RadioButtonList TextAlign="align" runat="server">
some content
</asp:RadioButtonList >
属性 説明
align

リスト項目のテキストのアライメント方法を指定します。

可能な値:

  • Left
  • Right (デフォルト)

以下の例では、RadioButtonList コントロールの TextAlign を "Left" に設定しています:

<form runat="server">
<asp:RadioButtonList id="rb1" runat="server"> TextAlign="Left">
Some content
</asp:RadioButtonList>
</form>

RadioButtonList コントロールの TextAlign 属性を設定する