clearLeft Property

Microsoft FrontPage Visual Basic

clearLeft Property

Returns or sets a Boolean that determines which sides of an element's box or boxes may not be adjacent to an earlier floating box. Read/write.

expression.clearLeft

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

Remarks

Use the clearRight property to clear the right side of a table cell.

Example

The following example creates a table and sets the clearLeft property of the cell in the right column to True. The cell or column to the left of this cell will now appear empty.

    Sub ClearLeftSide()
    Dim objSS As IFPStyleState
    Dim objLine1 As IHTMLElement
    Dim objLine2 As IHTMLElement
    Dim strHTML As String
    
    strHTML = "<table><tr><td><h1>This is line 1</h1></td>" _
        & "<td>This is line 2</td></tr></table>"
    
    With ActiveDocument
        .body.innerHTML = strHTML
    
        Set objLine1 = .all.tags("td").Item(0)
        Set objLine2 = .all.tags("td").Item(1)
        Set objSS = .createStyleState
    End With
    
    With objSS
        .GatherFromElement objLine2
        .clearLeft = True
        .textDecorationUnderline = True
        .Apply
    End With
End Sub