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.
Available since 2.0