tHead Property

Microsoft FrontPage Visual Basic

tHead Property

Returns an IHTMLTableSection object that represents the THEAD element in a TABLE element.

expression.tHead

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

The following example sets the background color for the THEAD element in the first table in the active document.

    Dim objTable As FPHTMLTable
Dim objTHead As FPHTMLTableSection

Set objTable = ActiveDocument.all.tags("table").Item(0)
Set objTHead = objTable.tHead

objTHead.bgColor = "blue"