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 속성 설정