PanelStyle::Wrap Property
Gets or sets a value indicating whether the content wraps within the panel.
Assembly: System.Web (in System.Web.dll)
Property Value
Type: System::Booleantrue if the content wraps within the panel; otherwise, false. The default is true.
The Wrap property indicates whether the content wraps within the panel. When the Wrap property is set to false and the ScrollBars property is set to Auto, if the content of the panel is longer than what will fit in the panel, the content of the panel will appear on one line with a horizontal scroll bar. When the Wrap property is set to false and the ScrollBars property is set to None, the panel will extend and if necessary the Web page will have a horizontal scroll bar.
The following code example sets the Wrap property to false for two panel controls, Panel1 and Panel2. This code example is part of a larger example provided for the PanelStyle class.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.