XmlMappedRange.NumberFormatLocal Özellik
Alır veya ayarlar için biçim kodu XmlMappedRange dil kullanıcı denetiminde.
Ad alanı: Microsoft.Office.Tools.Excel
Derleme: Microsoft.Office.Tools.Excel (Microsoft.Office.Tools.Excel.dll içinde)
Sözdizimi
'Bildirim
Property NumberFormatLocal As Object
Object NumberFormatLocal { get; set; }
Özellik Değeri
Tür: System.Object
İçin biçim kodu XmlMappedRange dil kullanıcı denetiminde.
Notlar
Format İşlevi göründüklerinden farklı biçim dizeleri kullanır NumberFormat ve NumberFormatLocal özellikleri.
Örnekler
Aşağıdaki kod örneğinde NumberFormat biçimi Tarih dizeleri özelliğine bir XmlMappedRange.Örnek ayrıca kullanır NumberFormatLocal özelliği kullanıcının dilinde tarih biçimini görüntülemek için.Bu kod örneği, geçerli çalışma sayfasının içerdiğini varsayar bir XmlMappedRange adlı CustomerDateCell.
Private Sub ApplyNumberFormatting()
Me.CustomerDateCell.Value2 = "4-Apr-1974"
Me.CustomerDateCell.NumberFormat = "m/d/yyyy"
' Display the number format in the language of the user.
MsgBox("The number format for CustomerDateCell is: " & _
Me.CustomerDateCell.NumberFormatLocal.ToString())
End Sub
private void ApplyNumberFormatting()
{
this.CustomerDateCell.Value2 = "4-Apr-1974";
this.CustomerDateCell.NumberFormat = "m/d/yyyy";
// Display the number format in the language of the user.
MessageBox.Show("The number format for CustomerDateCell is: " +
this.CustomerDateCell.NumberFormatLocal.ToString());
}
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen güvenilen kod kitaplıklarını kullanma.