Partilhar via


XmlMappedRange.Style Property

Gets or sets a Microsoft.Office.Interop.Excel.Style that represents the style of the XmlMappedRange control.

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

Syntax

'Declaration
Property Style As Object
Object Style { get; set; }

Property Value

Type: System.Object
A Microsoft.Office.Interop.Excel.Style that represents the style of the XmlMappedRange control.

Examples

The following code example uses the Style property to display the name of the current style of an XmlMappedRange. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

Private Sub DisplayStyle()
    Dim style1 As Excel.Style = CType(Me.CustomerLastNameCell.Style, Excel.Style)
    MsgBox("The current style of the XmlMappedRange is: " & style1.Name)
End Sub
private void DisplayStyle()
{
    Excel.Style style1 = (Excel.Style)this.CustomerLastNameCell.Style;
    MessageBox.Show("The current style of the XmlMappedRange is: " +
        style1.Name);
}

.NET Framework Security

See Also

Reference

XmlMappedRange Interface

Microsoft.Office.Tools.Excel Namespace