TitleStyle.Wrap Property
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)
Not applicable.
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.
Windows 98, Windows Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.