_Document.CountNumberedItems(Object, Object) メソッド

定義

指定したオブジェクト内の箇条書き項目または番号付き項目と LISTNUM フィールドの数を返します。

public int CountNumberedItems (ref object NumberType, ref object Level);
abstract member CountNumberedItems : obj * obj -> int
Public Function CountNumberedItems (Optional ByRef NumberType As Object, Optional ByRef Level As Object) As Integer

パラメーター

NumberType
Object

省略可能 なオブジェクト。 カウントする番号の種類。 WdNumberTypewdNumberParagraphwdNumberListNum、または wdNumberAllNumbers のいずれかの定数を指定できます。 既定値は wdNumberAllNumbers です。

Level
Object

省略可能 なオブジェクト。 カウントする番号のレベルに対応する数値を指定します。 この引数を省略すると、すべてのレベルの番号がカウントされます。

戻り値

注釈

行頭文字付き項目は、 に wdNumberParagraph または wdNumberAllNumbers (既定値) が指定されている場合にカウントされます NumberType

数値には 2 種類あります。プリセット番号 (wdNumberParagraph)、段落に追加するには、[箇条書きと段落番号] ダイアログ ボックスでテンプレートを選択します。および LISTNUM フィールド (wdNumberListNum) を使用すると、段落ごとに複数の数値を追加できます。

適用対象