ASP.NET TextAlign-egenskap
Definition och användning
TextAlign-egenskapen används för att hämta eller sätta textens utjämningsstil för CheckBoxList-objekt.
Syntax
<asp:CheckBoxList TextAlign="align" runat="server"> något innehåll </asp:CheckBoxList>
Egenskap | Beskrivning |
---|---|
align |
Bestämmer textens utjämningsstil för listobjekt. Möjliga värden:
|
Exempel
Följande exempel sätter CheckBoxList-kontrolls TextAlign-egenskap till "Vänster":
<form runat="server"> <asp:CheckBoxList id="rb1" runat="server"> TextAlign="Vänster"> Något innehåll </asp:CheckBoxList> </form>
Exempel
- Ställ in CheckBoxList-kontrolls TextAlign-egenskap