Udostępnij za pośrednictwem


XmlMappedRange.Style Property (2007 System)

Gets or sets a Style that represents the style 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 Property Style As Object
'Usage
Dim instance As XmlMappedRange 
Dim value As Object 

value = instance.Style

instance.Style = value
[BrowsableAttribute(false)]
public Object Style { get; set; }
[BrowsableAttribute(false)]
public:
property Object^ Style {
    Object^ get ();
    void set (Object^ value);
}
public function get Style () : Object 
public function set Style (value : Object)

Property Value

Type: System.Object
A 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 Class

XmlMappedRange Members

Microsoft.Office.Tools.Excel Namespace