currentStyleState Property

Returns an IFPStyleState object that represents the current style state of the specified document.

expression.currentStyleState

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

Example

The following example returns the style state of the current document, and then displays a message containing the display type of the current style state.

Sub StyleState()
    Dim objStyleState As IFPStyleState
    
    Set objStyleState = ActiveDocument.currentStyleState

    MsgBox "The display type of the current style state is """ & _
            objStyleState.display & "."""
End Sub

Applies to | FPHTMLDocument Object | IFPDocument Object