Aracılığıyla paylaş


XmlMappedRange.Font Özellik

Alır bir Microsoft.Office.Interop.Excel.Font yazı tipini temsil eden XmlMappedRange denetim.

Ad alanı:  Microsoft.Office.Tools.Excel
Derleme:  Microsoft.Office.Tools.Excel (Microsoft.Office.Tools.Excel.dll içinde)

Sözdizimi

'Bildirim
ReadOnly Property Font As Font
Font Font { get; }

Özellik Değeri

Tür: Microsoft.Office.Interop.Excel.Font
A Microsoft.Office.Interop.Excel.Font yazı tipini temsil eden XmlMappedRange denetim.

Örnekler

Aşağıdaki kod örneğinde Font özelliği için geçerli yazı tipini görüntülemek için bir XmlMappedRange.Bu kod örneği, geçerli çalışma sayfasının içerdiğini varsayar bir XmlMappedRange adlı CustomerLastNameCell.

Private Sub DisplayFontName()
    MsgBox("The current font for the XmlMappedRange named " & _
        "CustomerLastNameCell is: " & Me.CustomerLastNameCell.Font.Name)
End Sub
private void DisplayFontName()
{
    MessageBox.Show("The current font for the XmlMappedRange named " +
        "CustomerLastNameCell is: " + this.CustomerLastNameCell.Font.Name);
}

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

XmlMappedRange Arabirim

Microsoft.Office.Tools.Excel Ad Alanı