Table of contents
TOC
Collapse the table of content
Expand the table of content

ParagraphFormat.ListType Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

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 

© 2018 Microsoft