Compartilhar via


XmlMappedRange.Style Property

Definition

Gets or sets a Style that represents the style of the XmlMappedRange control.

public:
 property System::Object ^ Style { System::Object ^ get(); void set(System::Object ^ value); };
public object Style { get; set; }
member this.Style : obj with get, set
Public Property Style As Object

Property Value

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 void DisplayStyle()
{
    Excel.Style style1 = (Excel.Style)this.CustomerLastNameCell.Style;
    MessageBox.Show("The current style of the XmlMappedRange is: " +
        style1.Name);
}
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

Applies to