Sdílet prostřednictvím


WorkbookBase.DeleteNumberFormat(String) Method

Definition

Deletes a custom number format from the workbook.

public:
 void DeleteNumberFormat(System::String ^ numberFormat);
public void DeleteNumberFormat (string numberFormat);
member this.DeleteNumberFormat : string -> unit
Public Sub DeleteNumberFormat (numberFormat As String)

Parameters

numberFormat
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 void WorkbookDeleteNumberFormat()
{
    this.DeleteNumberFormat("#.###,##");
}
Private Sub WorkbookDeleteNumberFormat()
    Me.DeleteNumberFormat("#.###,##")
End Sub

Applies to