ShowPositionDialog Method

Microsoft FrontPage Visual Basic

ShowPositionDialog Method

Returns a String that represents the value of the position attribute for a cascading style sheet.

expression.ShowPositionDialog(strCSSIn)

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

strCSSIn    Optional Variant. A String that represents the initial custom settings for the dialog box.

Example

The following example sets the position attribute for the active element in the active document. Note that using the setAttribute method overwrites any other style attribute settings for the active element.

    Dim strCSS As String
Dim strCSSIn As String

strCSSIn = "position: absolute; left: 750"

strCSS = Application.ShowPositionDialog(strCSSIn)
If strCSS <> "" Then ActiveDocument.activeElement _
    .setAttribute "style", strCSS