Share via


XmlMappedRange.Font Property

Gets a Microsoft.Office.Interop.Excel.Font that represents the font of the XmlMappedRange control.

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

Syntax

'Declaration
ReadOnly Property Font As Font
    Get
Font Font { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.Font
A Microsoft.Office.Interop.Excel.Font that represents the font of the XmlMappedRange control.

Examples

The following code example uses the Font property to display the current font for an XmlMappedRange. This code example assumes that the current worksheet contains an XmlMappedRange named 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 Security

See Also

Reference

XmlMappedRange Interface

Microsoft.Office.Tools.Excel Namespace