RepeatDirection Enumeration
Assembly: System.Web (in system.web.dll)
The RepeatDirection enumeration represents the different directions in which the items of a list control can be displayed.
Note |
|---|
| The number of columns displayed is always determined by the RepeatColumns property of the list control. |
Horizontal specifies that the items of a list control are displayed in rows loaded from left to right, then top to bottom, until all items are rendered. For example, if the RepeatColumns property of the list control is set to three, the items of the list control are displayed in three columns.
| 1 | 2 | 3 |
| 4 | 5 | 6 |
| 7 | 8 |
Vertical specifies that the items of a list control are displayed in columns loaded from top to bottom, then left to right, until all items are rendered. For example, if the RepeatColumns property of the list control is set to three, the items of the list control are displayed in rows of three items.
| 1 | 4 | 7 |
| 2 | 5 | 8 |
| 3 | 6 |
| Topic | Location |
|---|---|
| How to: Specify Horizontal or Vertical Layout in DataList Web Server Controls | Building ASP .NET Web Applications |
| How to: Specify Horizontal or Vertical Layout in DataList Web Server Controls | Building ASP .NET Web Applications |
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Reference
System.Web.UI.WebControls NamespaceCheckBoxList Class
CheckBoxList.RepeatDirection Property
CheckBoxList.RepeatColumns Property
DataList Class
DataList.RepeatDirection Property
DataList.RepeatColumns Property
RadioButtonList Class
RadioButtonList.RepeatDirection Property
RadioButtonList.RepeatColumns Property
RepeatInfo
RepeatInfo.RepeatDirection
RepeatInfo.RepeatColumns
Note