DocumentBase.RemoveNumbers(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.