Description
Returns the formatting type of the current paragraph: H=headline format, B=body format, F=other style, 0-no style.
Can be used only if names of your headline styles start with whatever is specified as your head element name, e.g. "head" (beware - but not "Head"!), and body styles with bodyname.
Syntax
sResult = GetParaStyleType |
Code
Function GetParaStyleType()
' Returns formatting type of cur.para: H=headline format, B=body format, F=other style, 0-no style
' Can be used only if names of your headline styles start with whatever is specified as your head element name, e.g. "head" (beware - but not "Head"!), and body styles with bodyname
GetParaStyleType = False
If Text.TestTextParaStyle("*") Then
If Text.TestTextParaStyle(EdConfig.headname & "*") Then
GetParaStyleType = "H"
ElseIf Text.TestTextParaStyle(EdConfig.bodyname & "*") Then
GetParaStyleType = "B"
Else
GetParaStyleType = "F"
End If
Else
GetParaStyleType = "0"
End If
End Function
See also