ParagraphFormat.ListType プロパティ (Publisher)

指定した ParagraphFormat オブジェクトから PbListType 定数を返します。 読み取り専用です。

構文

式。ListType

式ParagraphFormat オブジェクトを表す変数。

戻り値

PbListType

注釈

このプロパティは値の取得のみ可能です。 ParagraphFormat オブジェクトの ListType プロパティを設定するには、SetListType メソッドを使用します。

ListType プロパティの値には、Microsoft Publisher タイプ ライブラリで宣言されている PbListType クラスの定数のいずれかを指定できます。

例

次の使用例は、リストの種類が具体的には pbListTypeArabic 、番号付きリストであるかどうかをテストします。 ListType プロパティが pbListTypeArabic に設定されている場合、 ListNumberSeparator プロパティの値は 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 
 

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。