DocumentBase.RemoveNumbers Method (Object)


Removes numbers or bullets from the document.

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

public void RemoveNumbers(
	ref object numberType


Type: System.Object

T:Microsoft.Office.Interop.Word.WdNumberType. The type of number to be removed.

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

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);
Return to top