clientTop Property

Microsoft FrontPage Visual Basic

clientTop Property

Returns a Long that represents the distance in pixels between the offsetTop property and the true top of the client area.

expression.clientTop

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

Example

The following example displays a message containing the height, width, top, and left measurements of the body of the active document.

    Sub GetClientInfo()
    Dim objBody As FPHTMLBody
    
    Set objBody = ActiveDocument.body
    
    With objBody
        MsgBox "height" & vbTab & .clientHeight & vbCrLf & _
            "width" & vbTab & .clientWidth & vbCrLf & _
            "top" & vbTab & .clientTop & vbCrLf & _
            "left" & vbTab & .clientLeft & vbCrLf
    End With
End Sub