Compartir a través de


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)

Syntax

'Declaration
Public Sub RemoveNumbers ( _
    ByRef numberType As Object _
)
public void RemoveNumbers(
    ref Object numberType
)

Parameters

Remarks

Optional Parameters

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

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 Sub DocumentRemoveNumbers()
    Me.RemoveNumbers(Word.WdNumberType.wdNumberListNum)
End Sub
private void DocumentRemoveNumbers()
{
    object numberType = Word.WdNumberType.wdNumberListNum;
    this.RemoveNumbers(ref numberType);
}

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace