This documentation is archived and is not being maintained.

PanelStyle::Wrap Property

Gets or sets a value indicating whether the content wraps within the panel.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
virtual property bool Wrap {
	bool get ();
	void set (bool value);
}

Property Value

Type: System::Boolean
true 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.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: