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

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

public function get Wrap () : boolean

public function set Wrap (value : boolean)

Not applicable.

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 Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: