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
- numberType
Type: System.Object%
WdNumberType . The type of number to be removed.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.