Freigeben über


XmlMappedRange.Font Property

Definition

Gets a Font that represents the font of the XmlMappedRange control.

public:
 property Microsoft::Office::Interop::Excel::Font ^ Font { Microsoft::Office::Interop::Excel::Font ^ get(); };
public Microsoft.Office.Interop.Excel.Font Font { get; }
member this.Font : Microsoft.Office.Interop.Excel.Font
Public ReadOnly Property Font As Font

Property Value

A 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 void DisplayFontName()
{
    MessageBox.Show("The current font for the XmlMappedRange named " +
        "CustomerLastNameCell is: " + this.CustomerLastNameCell.Font.Name);
}
Private Sub DisplayFontName()
    MsgBox("The current font for the XmlMappedRange named " & _
        "CustomerLastNameCell is: " & Me.CustomerLastNameCell.Font.Name)
End Sub

Applies to