This documentation is archived and is not being maintained.

TableCellControlBuilder Class

Interacts with the parser to build a TableCell control.

For a list of all members of this type, see TableCellControlBuilder Members.

System.Object
   System.Web.UI.ControlBuilder
      System.Web.UI.WebControls.TableCellControlBuilder

[Visual Basic]
Public Class TableCellControlBuilder
   Inherits ControlBuilder
[C#]
public class TableCellControlBuilder : ControlBuilder
[C++]
public __gc class TableCellControlBuilder : public ControlBuilder
[JScript]
public class TableCellControlBuilder extends ControlBuilder

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

Notes to Inheritors:  To create a custom control builder for a TableCell derived control, you need to inherit from this class.

Example

[Visual Basic] 
<%@ Register TagPrefix="aspSample" Namespace="Samples.AspNet.VB.Controls" Assembly="Samples.AspNet.VB" %>
<%@ Page Language="VB" AutoEventWireup="True" %>
<HTML>
    <HEAD>
        <title>Custom TableCell - AddAttributesToRender - VB.NET Example</title>
  </HEAD>
    <body>
        <form id="Form1" method="post" runat="server">
            <h3>Custom TableCell - AddAttributesToRender - VB.NET Example</h3>
            
            <asp:Table id="Table1" runat="server" CellPadding="3" CellSpacing="2">
                <asp:TableRow>
                    <aspSample:CustomTableCellAddAttributesToRender Text="(0,0)" />
                    <aspSample:CustomTableCellAddAttributesToRender Text="(0,1)" />
                    <aspSample:CustomTableCellAddAttributesToRender Text="(0,2)" />
                </asp:TableRow>
                <asp:TableRow>
                    <aspSample:CustomTableCellAddAttributesToRender Text="(1,0)" />
                    <aspSample:CustomTableCellAddAttributesToRender Text="(1,1)" />
                    <aspSample:CustomTableCellAddAttributesToRender Text="(1,2)" />
                </asp:TableRow>
            </asp:Table>
        </form>
    </body>
</HTML>

[C#] 
<%@ Register TagPrefix="aspSample" Namespace="Samples.AspNet.CS.Controls" Assembly="Samples.AspNet.CS" %>
<%@ Page Language="C#" AutoEventWireup="True" %>
<HTML>
    <HEAD>
        <title>Custom TableCell - AddAttributesToRender - C# Example</title>
    </HEAD>
    <body>
        <form id="Form1" method="post" runat="server">
            <h3>Custom TableCell - AddAttributesToRender - C# Example</h3>
      
      <asp:Table 
        id="Table1" 
        runat="server" 
        CellPadding="3" 
        CellSpacing="2">
        <asp:TableRow>
          <aspSample:CustomTableCellAddAttributesToRender Text="(0,0)" />
          <aspSample:CustomTableCellAddAttributesToRender Text="(0,1)" />
          <aspSample:CustomTableCellAddAttributesToRender Text="(0,2)" />
        </asp:TableRow>
        <asp:TableRow>
          <aspSample:CustomTableCellAddAttributesToRender Text="(1,0)" />
          <aspSample:CustomTableCellAddAttributesToRender Text="(1,1)" />
          <aspSample:CustomTableCellAddAttributesToRender Text="(1,2)" />
        </asp:TableRow>
      </asp:Table>
      
        </form>
    </body>
</HTML>

[C++, JScript] No example is available for C++ or JScript. To view a Visual Basic or C# example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Namespace: System.Web.UI.WebControls

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

Assembly: System.Web (in System.Web.dll)

See Also

TableCellControlBuilder Members | System.Web.UI.WebControls Namespace

Show: