Expand Minimize

DocumentBase.RemoveNumbers Method

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
)

Parameters

numberType
Type: System.Object

WdNumberType. The type of number to be removed.

Optional Parameters

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);
}

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft