asp.net.ph

HtmlTableCell.NoWrap Property

System.Web.UI.HtmlControls Namespace   HtmlTableCell Class


Sets or retrieves a value indicating whether text within an HtmlTableCell automatically continues on the next line when it reaches the end of the cell.

Syntax


Inline <th | td nowrap ... >
Script HtmlTableCell.NoWrap [ = true | false ]

This property accepts or returns only a boolean value: true if text does not automatically wrap in the cell; otherwise false. Default value is false.

Remarks

Use the NoWrap property to specify or determine whether the text in a table cell automatically continues on the next line when it reaches the end of the cell.

Setting this property to true supresses the automatic word wrap provided in HTML for tables.

Example

The below snippet shows how to declaratively set the NoWrap property of a table cell at design time.

<table cellspacing=1 width="92%" runat="server">
<tr>
   <th>Table header</th></tr>

<tr>
   <td nowrap>Table data</td></tr>
</table>

The following example demonstrates how to use the NoWrap property to programmatically control whether the text wraps in the cells of an HtmlTable.

 Show me 

See Also

HtmlTableCell Members   Height   Width Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note