Udostępnij za pośrednictwem


XmlMappedRange.Interior Property

Definition

Gets an Interior that represents the interior of the XmlMappedRange control.

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

Property Value

An Interior that represents the interior of the XmlMappedRange control.

Examples

The following code example uses the Borders property to draw double lines for the border of an XmlMappedRange, and it uses the Interior property to color the interior of an XmlMappedRange green. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

private void SetBordersColorAndInterior()
{
    this.CustomerLastNameCell.Borders.LineStyle =
        Excel.XlLineStyle.xlDouble;
    this.CustomerLastNameCell.Interior.Color = 0xFF00;
}
Private Sub SetBordersColorAndInterior()
    Me.CustomerLastNameCell.Borders.LineStyle = _
        Excel.XlLineStyle.xlDouble
    Me.CustomerLastNameCell.Interior.Color = &HFF00
End Sub

Applies to