Publisher (的 ParagraphFormat.ListNumberSeparator 屬性)
設定或擷取代表指定段落之清單分隔符號的 PbListSeparator 常 數。 可讀寫。
語法
運算式。ListNumberSeparator
表達 代表 ParagraphFormat 物件的 變數。
傳回值
PbListNumberSeparator
註解
您必須先將 ListType 屬性設定為編號清單類型,才能設定 ListNumberSeparator 屬性。 若清單並非編號清單,則傳回「拒絕存取」訊息。
ListNumberSeparator屬性值可以是其中一個PbListSeparator常數。
範例
此範例會測試清單類型是否為編號清單,特別是 pbListTypeArabic (PbListType 列舉) 。 如果 ListType 屬性設定為 pbListTypeArabic, ListNumberSeparator 屬性會設定為 pbListSeparatorParenthesis。 否則, 會呼叫 SetListType 方法並傳遞 pbListTypeArabic 作為 Value (PbListType) 參數,然後可以設定 ListNumberSeparator 屬性。
Dim objParaForm As ParagraphFormat
Set objParaForm = ActiveDocument.Pages(1).Shapes(1) _
.TextFrame.TextRange.ParagraphFormat
With objParaForm
If .ListType = pbListTypeArabic Then
.ListNumberSeparator = pbListSeparatorParenthesis
Else
.SetListType pbListTypeArabic
.ListNumberSeparator = pbListSeparatorParenthesis
End If
End With
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。