TitleStyle.Wrap Property

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

Gets or sets a value indicating whether the contents of the title bar for a part control wrap in the title bar.

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

public:
virtual property bool Wrap {
	bool get () override;
	void set (bool value) override;
}
/** @property */
public boolean get_Wrap ()

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

public override function get Wrap () : boolean

public override function set Wrap (value : boolean)

Property Value

true if the contents of a title bar wrap in the title bar; otherwise, false. The default is false.

The TitleStyle class overrides the base Wrap property so that it can set the value to false. The TitleStyle sets the Wrap property to false, so that by default, a title bar for a part control does not allow its contents to wrap.

The following code example demonstrates the declarative use of the Wrap property. In the code for the following page, an <asp:calendar> element and an <asp:label> element appear within a zone, which gives the corresponding controls genuine Web Parts functionality at run time.

Notice that the <parttitlestyle> element, which contains several style attributes, applies to the title bars of both Web Parts controls contained within the zone. Notice also that the <parttitlestyle> element has wrap and width attributes. Because the Wrap property value is set to true, and the text in the title bars of the two controls is wider than the value assigned to the width attribute, the title bar text of each control wraps when the page is loaded in a browser.

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

Windows 98, Windows 2000 SP4, Windows Millennium Edition, 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: