ncssSup Property

Microsoft FrontPage Visual Basic

ncssSup Property

Returns or sets a Boolean that specifies whether text will appear as superscript.

expression.ncssSup

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

Example

The following example sets all text enclosed in STRONG elements to appear as superscript.

    Sub NcssSupTag()
 
    Dim objSs As IFPStyleState
    Dim objLine1 As IHTMLElement
    Dim strHTML As String
        
    strHTML = "<strong>This is a sample that will appear as superscript.</strong>"
    
    Application.ActiveDocument.body.innerHTML = strHTML
    
    For Each objLine1 In Application.ActiveDocument.all.tags("strong")
        Set objSs = Application.ActiveDocument.createStyleState
        objSs.gatherFromElement objLine1
        objSs.ncssSup = True
        objSs.apply
    Next objLine1

End Sub