Programmer's Reference >
ExcelApplication API >
Style > NumberFormat
NumberFormat Property
C# Signature:
VB.NET Signature:
Description:
| Sets or returns the number format string used for formatting of numbers and dates.
NumberFormat is a
read / write property.
|
Examples:
[csharp]
// Get NumberFormat
string numFormat = styl.NumberFormat;
// Set NumberFormat
styl.NumberFormat = "#.##";
// Set NumberFormat
styl.NumberFormat = "mm/dd/yyyy hh:mm:ss AM/PM";
[vbnet]
' Get NumberFormat
Dim numFormat As String = styl.NumberFormat
' Set NumberFormat
styl.NumberFormat = "#.##";
' Set NumberFormat
styl.NumberFormat = "mm/dd/yyyy hh:mm:ss AM/PM"
Getter |
Signature:
public String
NumberFormat
Returns:
String
The number format used by the specified style.
|
Setter |
Signature:
public void NumberFormat String
aFormatString
Type:
String
|
Copyright 2005 © SoftArtisans, Inc. All Rights Reserved.
|