다음을 통해 공유


WorkbookBase.DeleteNumberFormat Method

Deletes a custom number format from the workbook.

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

Syntax

'Declaration
Public Sub DeleteNumberFormat ( _
    numberFormat As String _
)
public void DeleteNumberFormat(
    string numberFormat
)

Parameters

  • numberFormat
    Type: System.String

    Names the number format to be deleted.

Examples

The following code example uses the DeleteNumberFormat method to delete the custom number format "#.###,##" from the current workbook.

This example is for a document-level customization.

Private Sub WorkbookDeleteNumberFormat()
    Me.DeleteNumberFormat("#.###,##")
End Sub
private void WorkbookDeleteNumberFormat()
{
    this.DeleteNumberFormat("#.###,##");
}

.NET Framework Security

See Also

Reference

WorkbookBase Class

Microsoft.Office.Tools.Excel Namespace