Compartilhar via


DisplayFormat.NumberFormat Property

Gets a value that represents the format code of the associated Range object as it is displayed in the current user interface.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
ReadOnly Property NumberFormat As Object
    Get
'Usage
Dim instance As DisplayFormat
Dim value As Object

value = instance.NumberFormat
Object NumberFormat { get; }

Property Value

Type: System.Object
The format code of the associated Range object as it is displayed in the current user interface.

Remarks

Read-only.

This property returns a null reference (Nothing in Visual Basic) if all cells in the specified range do not have the same number format.

See Also

Reference

DisplayFormat Interface

DisplayFormat Members

Microsoft.Office.Interop.Excel Namespace