ASP.NET TextAlign プロパティ

定義と使用方法

TextAlign 属性は、checkbox テキストのアライメント方法を設定または返します。

デフォルトのアライメントは "right" です。

文法

<asp:CheckBox TextAlign="left|right" runat="server" />

以下の例では、checkbox テキストのアライメント方法を設定しています:

<form runat="server">
<asp:CheckBox id="check1" runat="server">
Text="Make it so" TextAlign="left" />
</form>

checkbox テキストのアライメント方法を設定する