XmlMappedRange.Font Property (2007 System)
Gets a Font that represents the font of the XmlMappedRange control.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)
Syntax
'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property Font As Font
'Usage
Dim instance As XmlMappedRange
Dim value As Font
value = instance.Font
[BrowsableAttribute(false)]
public Font Font { get; }
[BrowsableAttribute(false)]
public:
property Font^ Font {
Font^ get ();
}
public function get Font () : Font
Property Value
Type: Font
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 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.