ParagraphFormat.ListType Property (Publisher)

Returns a PbListType constant from the specified ParagraphFormat object. Read-only.

Syntax

expression .ListType

expression A variable that represents a ParagraphFormat object.

Return Value

pbListType

Remarks

This property is read-only. To set the ListType property of a ParagraphFormat object, use the SetListType method.

The ListType property value can be one of the PbListType constants declared in the Microsoft Publisher type library.

Example

This example tests to see if the list type is a numbered list, specifically pbListTypeArabic. If the ListType property is set to pbListTypeArabic, the ListNumberSeparator property value is set to pbListSeparatorParenthesis.

Dim objParaForm As ParagraphFormat 
 
Set objParaForm = ActiveDocument.Pages(1).Shapes(1) _ 
.TextFrame.TextRange.ParagraphFormat 
 
With objParaForm 
 If .ListType = pbListTypeArabic Then 
 .ListNumberSeparator = pbListSeparatorParenthesis 
 End If 
End With