Aracılığıyla paylaş


XmlMappedRange.NumberFormatLocal Özellik

Alır veya ayarlar için biçim kodu XmlMappedRange Denetim Dilde Kullanıcı.

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
    Get
    Set
Object NumberFormatLocal { get; set; }

Özellik Değeri

Tür: System.Object
Biçim kodu XmlMappedRange Denetim Dilde Kullanıcı.

Açıklamalar

Format İşlevini kullanan farklı biçim kodu dizeleri daha NumberFormat ve NumberFormatLocal özellikleri.

Örnekler

Aşağıdaki kod örneği NumberFormat biçimi tarih dizeleri özelliğine bir XmlMappedRange. Bu örnek de kullanır NumberFormatLocal özelliği kullanıcının dil tarih biçiminde görüntüleme 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

Ayrıca bkz.

Başvuru

XmlMappedRange Arabirim

Microsoft.Office.Tools.Excel Ad Alanı