ASP.NET RepeatDirection Egenskap
Definition och användning
RepeatDirection-egenskapen används för att ställa in eller returnera om objekten i CheckBoxList ska visas vertikalt eller horisontellt.
Syntaks
<asp:CheckBoxList RepeatDirection="mode" runat="server"> något innehåll </asp:CheckBoxList >
Egenskap | Beskrivning |
---|---|
mode |
Bestämmer layoutriktningen för objekten i CheckBoxList. Möjliga värden:
|
Exempel
Följande exempel ställer in RepeatDirection för CheckBoxList-kontrollen:
<form runat="server"> <asp:CheckBoxList id="cb1" runat="server"> RepeatDirection="Horizontal"> Något innehåll </asp:CheckBoxList> </form>
Exempel
- Ställ in RepeatDirection för CheckBoxList-kontrollen