PanelStyle.Wrap Property

Note: This property is new in the .NET Framework version 2.0.

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 */
public boolean get_Wrap ()

/** @property */
public void set_Wrap (boolean value)

public function get Wrap () : boolean

public function set Wrap (value : boolean)

Property Value

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.

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.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: