共用方式為


DocumentBase.RemoveNumbers(Object) Method

Definition

Removes numbers or bullets from the document.

public void RemoveNumbers (ref object numberType);
member this.RemoveNumbers : obj -> unit
Public Sub RemoveNumbers (Optional ByRef numberType As Object)

Parameters

numberType
Object

WdNumberType. The type of number to be removed.

Examples

The following code example uses the RemoveNumbers method to remove LISTNUM fields from the document. To use this example, run it from the ThisDocument class in a document-level project.

private void DocumentRemoveNumbers()
{
    object numberType = Word.WdNumberType.wdNumberListNum;
    this.RemoveNumbers(ref numberType);
}
Private Sub DocumentRemoveNumbers()
    Me.RemoveNumbers(Word.WdNumberType.wdNumberListNum)
End Sub

Remarks

Optional Parameters

For information on optional parameters, see Optional Parameters in Office Solutions.

Applies to